800
How can copy and paste the selection to Microsoft Word, any OLE compliant application, as a snapshot
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spGantt1->PutHTMLPicture(L"p1","c:\\exontrol\\images\\card.png");
spGantt1->PutHTMLPicture(L"p2","c:\\exontrol\\images\\sun.png");
spGantt1->PutAutoDrag(EXGANTTLib::exAutoDragCopySnapShot);
spGantt1->PutLinesAtRoot(EXGANTTLib::exNoLinesAtRoot);
spGantt1->PutHasLines(EXGANTTLib::exThinLine);
spGantt1->PutShowFocusRect(VARIANT_FALSE);
spGantt1->PutDefaultItemHeight(26);
spGantt1->GetColumns()->Add(L"Task");
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutShowNonworkingDates(VARIANT_FALSE);
	var_Chart->PutFirstVisibleDate(COleDateTime(2000,12,29,0,00,00).operator DATE());
	var_Chart->PutPaneWidth(VARIANT_FALSE,96);
	var_Chart->PutLevelCount(2);
	EXGANTTLib::IBarPtr var_Bar = var_Chart->GetBars()->GetItem("Task");
		var_Bar->PutColor(0x1000000);
		var_Bar->PutHeight(18);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("<img>p1:32</img>Group 1");
	var_Items->PutCellCaptionFormat(h,long(0),EXGANTTLib::exHTML);
	var_Items->PutItemDivider(h,0);
	var_Items->PutItemBold(h,VARIANT_TRUE);
	long h1 = var_Items->InsertItem(h,vtMissing,"Task 1");
	var_Items->AddBar(h1,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing);
	long h2 = var_Items->InsertItem(h,vtMissing,"Task 2");
	var_Items->AddBar(h2,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing);
	var_Items->AddLink("L1",h1,"K1",h2,"K2");
	var_Items->PutLink("L1",EXGANTTLib::exLinkText,"L1");
	long h3 = var_Items->InsertItem(h,vtMissing,"Task 3");
	var_Items->AddBar(h3,"Task",COleDateTime(2001,1,8,0,00,00).operator DATE(),COleDateTime(2001,1,10,0,00,00).operator DATE(),"K3",vtMissing);
	var_Items->AddLink("L2",h2,"K2",h3,"K3");
	var_Items->PutLink("L2",EXGANTTLib::exLinkText,"L2");
	h = var_Items->AddItem("<img>p2:32</img>Group 2");
	var_Items->PutCellCaptionFormat(h,long(0),EXGANTTLib::exHTML);
	var_Items->PutItemBold(h,VARIANT_TRUE);
	var_Items->PutItemDivider(h,0);
	h1 = var_Items->InsertItem(h,vtMissing,"Task");
	var_Items->AddBar(h1,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing);
	var_Items->PutExpandItem(0,VARIANT_TRUE);
spGantt1->EndUpdate();

799
How can copy and paste the selection to Microsoft Word, any OLE compliant application, as a image

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutHTMLPicture(L"p1","c:\\exontrol\\images\\card.png");
spGantt1->PutHTMLPicture(L"p2","c:\\exontrol\\images\\sun.png");
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
_variant_t var_HTMLPicture = spGantt1->GetHTMLPicture(L"aka1");
spGantt1->PutHeaderHeight(24);
spGantt1->PutDefaultItemHeight(48);
spGantt1->PutDrawGridLines(EXGANTTLib::exRowLines);
spGantt1->PutGridLineColor(RGB(240,240,240));
spGantt1->PutSelBackMode(EXGANTTLib::exTransparent);
spGantt1->PutColumnAutoResize(VARIANT_FALSE);
spGantt1->PutContinueColumnScroll(VARIANT_FALSE);
/*
	Includes the definition for CreateObject function like follows:

	#include <comdef.h>
	IUnknownPtr CreateObject( BSTR Object )
	{
		IUnknownPtr spResult;
		spResult.CreateInstance( Object );
		return spResult;
	};

*/
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'ADODB' for the library: 'Microsoft ActiveX Data Objects 6.1 Library'

	#import <msado15.dll> rename("EOF","REOF")
*/
ADODB::_RecordsetPtr rs = ::CreateObject(L"ADOR.Recordset");
	rs->Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExGantt\\Sample\\Access\\SAMPLE.MDB",ADODB::adOpenStatic,ADODB::adLockOptimistic,0);
spGantt1->PutDataSource(((ADODB::_RecordsetPtr)(rs)));
spGantt1->GetColumns()->GetItem(long(0))->PutDef(EXGANTTLib::exCellCaptionFormat,long(1));
spGantt1->GetColumns()->GetItem(long(0))->PutFormatColumn(L"value + ` <img>p` + (1 + (value mod 3 ) ) + `</img>`");
spGantt1->GetColumns()->GetItem(long(0))->PutWidth(112);
spGantt1->GetColumns()->GetItem(long(1))->PutDef(EXGANTTLib::exCellHasCheckBox,long(1));
spGantt1->GetColumns()->GetItem(long(2))->PutLevelKey("1");
spGantt1->GetColumns()->GetItem(long(3))->PutLevelKey("1");
spGantt1->GetColumns()->GetItem(long(4))->PutLevelKey("1");
spGantt1->PutAutoDrag(EXGANTTLib::exAutoDragCopyImage);
spGantt1->PutSingleSel(VARIANT_FALSE);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->GetItemByIndex(1);
	var_Items->PutSelectItem(h,VARIANT_TRUE);
	h = var_Items->GetItemByIndex(2);
	var_Items->PutSelectItem(h,VARIANT_TRUE);
	h = var_Items->GetItemByIndex(3);
	var_Items->PutSelectItem(h,VARIANT_TRUE);
	var_Items->PutLockedItemCount(EXGANTTLib::BottomAlignment,1);
	h = var_Items->GetLockedItem(EXGANTTLib::BottomAlignment,0);
	var_Items->PutCellCaption(h,long(1),"<font ;16>Click the selection and <b>wait to start dragging</b>, and then drop to Microsoft Word, ...");
	var_Items->PutCellSingleLine(h,long(1),EXGANTTLib::exCaptionWordWrap);
	var_Items->PutCellCaptionFormat(h,long(1),EXGANTTLib::exHTML);
	var_Items->PutCellHAlignment(h,long(1),EXGANTTLib::CenterAlignment);
	var_Items->PutItemDivider(h,1);
	var_Items->PutItemDividerLineAlignment(h,EXGANTTLib::DividerTop);
spGantt1->EndUpdate();

798
How can copy and paste the selection to Microsoft Word, Excel or any OLE compliant application, as a text

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
spGantt1->PutColumnAutoResize(VARIANT_FALSE);
spGantt1->PutContinueColumnScroll(VARIANT_FALSE);
/*
	Includes the definition for CreateObject function like follows:

	#include <comdef.h>
	IUnknownPtr CreateObject( BSTR Object )
	{
		IUnknownPtr spResult;
		spResult.CreateInstance( Object );
		return spResult;
	};

*/
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'ADODB' for the library: 'Microsoft ActiveX Data Objects 6.1 Library'

	#import <msado15.dll> rename("EOF","REOF")
*/
ADODB::_RecordsetPtr rs = ::CreateObject(L"ADOR.Recordset");
	rs->Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExGantt\\Sample\\Access\\SAMPLE.MDB",ADODB::adOpenStatic,ADODB::adLockOptimistic,0);
spGantt1->PutDataSource(((ADODB::_RecordsetPtr)(rs)));
spGantt1->GetColumns()->GetItem(long(2))->PutLevelKey("1");
spGantt1->GetColumns()->GetItem(long(3))->PutLevelKey("1");
spGantt1->GetColumns()->GetItem(long(4))->PutLevelKey("1");
spGantt1->PutAutoDrag(EXGANTTLib::exAutoDragCopyText);
spGantt1->PutSingleSel(VARIANT_FALSE);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->GetItemByIndex(1);
	var_Items->PutSelectItem(h,VARIANT_TRUE);
	h = var_Items->GetItemByIndex(3);
	var_Items->PutSelectItem(h,VARIANT_TRUE);
	h = var_Items->GetItemByIndex(4);
	var_Items->PutSelectItem(h,VARIANT_TRUE);
	h = var_Items->GetItemByIndex(5);
	var_Items->PutSelectItem(h,VARIANT_TRUE);
	var_Items->PutLockedItemCount(EXGANTTLib::BottomAlignment,1);
	h = var_Items->GetLockedItem(EXGANTTLib::BottomAlignment,0);
	var_Items->PutCellCaption(h,long(0),"<font ;16>Click the selection and <b>wait to start dragging</b>, and then drop to Microsoft Word, Excel, ...");
	var_Items->PutCellSingleLine(h,long(0),EXGANTTLib::exCaptionWordWrap);
	var_Items->PutCellCaptionFormat(h,long(0),EXGANTTLib::exHTML);
	var_Items->PutCellHAlignment(h,long(0),EXGANTTLib::CenterAlignment);
	var_Items->PutItemDivider(h,0);
	var_Items->PutItemDividerLineAlignment(h,EXGANTTLib::DividerTop);
spGantt1->EndUpdate();

797
Is it possible to change the indentation during the drag and drop

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spGantt1->PutAutoDrag(EXGANTTLib::exAutoDragPositionAny);
spGantt1->PutLinesAtRoot(EXGANTTLib::exNoLinesAtRoot);
spGantt1->PutHasLines(EXGANTTLib::exSolidLine);
spGantt1->PutHasButtons(EXGANTTLib::exWPlus);
spGantt1->PutShowFocusRect(VARIANT_FALSE);
spGantt1->PutSelBackMode(EXGANTTLib::exTransparent);
spGantt1->GetColumns()->Add(L"Task");
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutShowNonworkingDates(VARIANT_FALSE);
	var_Chart->PutFirstVisibleDate(COleDateTime(2000,12,29,0,00,00).operator DATE());
	var_Chart->PutPaneWidth(VARIANT_FALSE,128);
	var_Chart->PutLevelCount(2);
	var_Chart->GetBars()->GetItem("Task")->PutColor(0x1000000);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Group 1");
	var_Items->PutItemBold(h,VARIANT_TRUE);
	var_Items->PutItemDivider(h,0);
	long h1 = var_Items->InsertItem(h,vtMissing,"Task 1");
	var_Items->AddBar(h1,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing);
	long h2 = var_Items->InsertItem(h1,vtMissing,"Task 2");
	var_Items->AddBar(h2,"Task",COleDateTime(2001,1,15,0,00,00).operator DATE(),COleDateTime(2001,1,17,0,00,00).operator DATE(),"K4",vtMissing);
	h2 = var_Items->InsertItem(h1,vtMissing,"Task 3");
	var_Items->AddBar(h2,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing);
	var_Items->AddLink("L1",h1,"K1",h2,"K2");
	var_Items->PutLink("L1",EXGANTTLib::exLinkText,"L1");
	long h3 = var_Items->InsertItem(h,vtMissing,"Task 3");
	var_Items->AddBar(h3,"Task",COleDateTime(2001,1,8,0,00,00).operator DATE(),COleDateTime(2001,1,10,0,00,00).operator DATE(),"K3",vtMissing);
	var_Items->AddLink("L2",h2,"K2",h3,"K3");
	var_Items->PutLink("L2",EXGANTTLib::exLinkText,"L2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
	var_Items->PutExpandItem(h1,VARIANT_TRUE);
	h = var_Items->AddItem("Group 2");
	var_Items->PutItemBold(h,VARIANT_TRUE);
	var_Items->PutItemDivider(h,0);
	var_Items->PutLockedItemCount(EXGANTTLib::BottomAlignment,1);
	h = var_Items->GetLockedItem(EXGANTTLib::BottomAlignment,0);
	var_Items->PutCellCaption(h,long(0),_bstr_t("Click a row, and move by dragging <b>up, down</b> to change the row's parent or <b>left,right</b> to increase or decrease the i") +
"ndentation.");
	var_Items->PutCellSingleLine(h,long(0),EXGANTTLib::exCaptionWordWrap);
	var_Items->PutCellCaptionFormat(h,long(0),EXGANTTLib::exHTML);
spGantt1->EndUpdate();

796
Is it possible to allow moving an item to another, but keeping its indentation

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spGantt1->PutAutoDrag(EXGANTTLib::exAutoDragPositionKeepIndent);
spGantt1->PutLinesAtRoot(EXGANTTLib::exNoLinesAtRoot);
spGantt1->PutHasLines(EXGANTTLib::exThinLine);
spGantt1->PutShowFocusRect(VARIANT_FALSE);
spGantt1->GetColumns()->Add(L"Task");
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutShowNonworkingDates(VARIANT_FALSE);
	var_Chart->PutFirstVisibleDate(COleDateTime(2000,12,29,0,00,00).operator DATE());
	var_Chart->PutPaneWidth(VARIANT_FALSE,96);
	var_Chart->PutLevelCount(2);
	var_Chart->GetBars()->GetItem("Task")->PutColor(0x1000000);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Group 1");
	var_Items->PutItemDivider(h,0);
	var_Items->PutItemBold(h,VARIANT_TRUE);
	long h1 = var_Items->InsertItem(h,vtMissing,"Task 1");
	var_Items->AddBar(h1,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing);
	long h2 = var_Items->InsertItem(h,vtMissing,"Task 2");
	var_Items->AddBar(h2,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing);
	var_Items->AddLink("L1",h1,"K1",h2,"K2");
	var_Items->PutLink("L1",EXGANTTLib::exLinkText,"L1");
	long h3 = var_Items->InsertItem(h,vtMissing,"Task 3");
	var_Items->AddBar(h3,"Task",COleDateTime(2001,1,8,0,00,00).operator DATE(),COleDateTime(2001,1,10,0,00,00).operator DATE(),"K3",vtMissing);
	var_Items->AddLink("L2",h2,"K2",h3,"K3");
	var_Items->PutLink("L2",EXGANTTLib::exLinkText,"L2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
	h = var_Items->AddItem("Group 2");
	var_Items->PutItemBold(h,VARIANT_TRUE);
	var_Items->PutItemDivider(h,0);
spGantt1->EndUpdate();

795
How can I change the row's position to another, by drag and drop. Is it possible

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spGantt1->PutAutoDrag(EXGANTTLib::exAutoDragPosition);
spGantt1->GetColumns()->Add(L"Task");
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutShowNonworkingDates(VARIANT_FALSE);
	var_Chart->PutFirstVisibleDate(COleDateTime(2000,12,29,0,00,00).operator DATE());
	var_Chart->PutPaneWidth(VARIANT_FALSE,64);
	var_Chart->PutLevelCount(2);
	var_Chart->GetBars()->GetItem("Task")->PutColor(0x1000000);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h1 = var_Items->AddItem("Task 1");
	var_Items->AddBar(h1,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing);
	long h2 = var_Items->AddItem("Task 2");
	var_Items->AddBar(h2,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing);
	var_Items->AddLink("L1",h1,"K1",h2,"K2");
	var_Items->PutLink("L1",EXGANTTLib::exLinkText,"L1");
	long h3 = var_Items->AddItem("Task 3");
	var_Items->AddBar(h3,"Task",COleDateTime(2001,1,8,0,00,00).operator DATE(),COleDateTime(2001,1,10,0,00,00).operator DATE(),"K3",vtMissing);
	var_Items->AddLink("L2",h2,"K2",h3,"K3");
	var_Items->PutLink("L2",EXGANTTLib::exLinkText,"L2");
spGantt1->EndUpdate();

794
Have seen the RenderType, but do not know what kind of values should I use

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spGantt1->GetColumns()->Add(L"Task");
spGantt1->PutBackColorHeader(0x1000000);
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutBackColorLevelHeader(0x1000000);
	var_Chart->PutFirstVisibleDate(COleDateTime(2000,12,29,0,00,00).operator DATE());
	var_Chart->PutPaneWidth(VARIANT_FALSE,64);
	var_Chart->PutLevelCount(2);
	var_Chart->GetBars()->GetItem("Task")->PutColor(0x1000000);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h1 = var_Items->AddItem("Task 1");
	var_Items->AddBar(h1,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing);
	long h2 = var_Items->AddItem("Task 2");
	var_Items->AddBar(h2,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing);
	var_Items->AddLink("L1",h1,"K1",h2,"K2");
	var_Items->PutLink("L1",EXGANTTLib::exLinkText,"L1");
	long h3 = var_Items->AddItem("Task 3");
	var_Items->AddBar(h3,"Task",COleDateTime(2001,1,8,0,00,00).operator DATE(),COleDateTime(2001,1,10,0,00,00).operator DATE(),"K3",vtMissing);
	var_Items->AddLink("L2",h2,"K2",h3,"K3");
	var_Items->PutLink("L2",EXGANTTLib::exLinkText,"L2");
spGantt1->GetVisualAppearance()->PutRenderType(-2147483393);
spGantt1->EndUpdate();

793
I have several columns, but noticed that the filter is using AND between columns, but I need OR clause for filtering. Is it possible

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot);
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Item")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_FALSE);
	var_Column->PutFilter(L"Child 1");
	var_Column->PutFilterType(EXGANTTLib::exFilter);
EXGANTTLib::IColumnPtr var_Column1 = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Date")));
	var_Column1->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column1->PutDisplayFilterPattern(VARIANT_FALSE);
	var_Column1->PutDisplayFilterDate(VARIANT_TRUE);
	var_Column1->PutFilterList(EXGANTTLib::FilterListEnum(EXGANTTLib::exShowExclude | EXGANTTLib::exShowFocusItem | EXGANTTLib::exShowCheckBox | EXGANTTLib::exNoItems));
	var_Column1->PutFilter(L"COleDateTime(2010,12,28,0,00,00).operator DATE()");
	var_Column1->PutFilterType(EXGANTTLib::exDate);
spGantt1->PutFilterCriteria(L"%0 or %1");
spGantt1->PutDescription(EXGANTTLib::exFilterBarOr,L"<font ;18><fgcolor=FF0000>or</fgcolor></font>");
spGantt1->PutDescription(EXGANTTLib::exFilterBarAnd,L"<font ;18><fgcolor=FF0000>and</fgcolor></font>");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root 1");
	var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 1"),long(1),COleDateTime(2010,12,27,0,00,00).operator DATE());
	var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 2"),long(1),COleDateTime(2010,12,28,0,00,00).operator DATE());
	var_Items->PutExpandItem(h,VARIANT_TRUE);
	h = var_Items->AddItem("Root 2");
	var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 1"),long(1),COleDateTime(2010,12,29,0,00,00).operator DATE());
	var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 2"),long(1),COleDateTime(2010,12,30,0,00,00).operator DATE());
spGantt1->ApplyFilter();
spGantt1->EndUpdate();

792
Is it possible exclude the dates being selected in the drop down filter window

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Date")));
	var_Column->PutSortType(EXGANTTLib::SortDate);
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_FALSE);
	var_Column->PutDisplayFilterDate(VARIANT_TRUE);
	var_Column->PutFilterList(EXGANTTLib::FilterListEnum(EXGANTTLib::exShowExclude | EXGANTTLib::exShowFocusItem | EXGANTTLib::exShowCheckBox | EXGANTTLib::exNoItems));
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem(COleDateTime(2010,12,27,0,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2010,12,28,0,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2010,12,29,0,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2010,12,30,0,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2010,12,31,0,00,00).operator DATE());
spGantt1->EndUpdate();

791
How can I display a calendar control inside the drop down filter window

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Date")));
	var_Column->PutSortType(EXGANTTLib::SortDate);
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_FALSE);
	var_Column->PutDisplayFilterDate(VARIANT_TRUE);
	var_Column->PutFilterList(EXGANTTLib::FilterListEnum(EXGANTTLib::exShowFocusItem | EXGANTTLib::exShowCheckBox | EXGANTTLib::exNoItems));
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem(COleDateTime(2010,12,27,0,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2010,12,28,0,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2010,12,29,0,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2010,12,30,0,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2010,12,31,0,00,00).operator DATE());
spGantt1->EndUpdate();

790
Is it possible to include the dates as checkb-boxes in the drop down filter window

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Dates")));
	var_Column->PutSortType(EXGANTTLib::SortDate);
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_TRUE);
	var_Column->PutDisplayFilterDate(VARIANT_TRUE);
	var_Column->PutFilterList(EXGANTTLib::FilterListEnum(EXGANTTLib::exShowFocusItem | EXGANTTLib::exShowCheckBox));
	var_Column->PutFilter(L"to 12/27/2010");
	var_Column->PutFilterType(EXGANTTLib::exDate);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem(COleDateTime(2010,12,27,0,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2010,12,28,0,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2010,12,29,0,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2010,12,30,0,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2010,12,31,0,00,00).operator DATE());
spGantt1->ApplyFilter();
spGantt1->EndUpdate();

789
How can I filter items for dates before a specified date

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Dates")));
	var_Column->PutSortType(EXGANTTLib::SortDate);
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_TRUE);
	var_Column->PutDisplayFilterDate(VARIANT_TRUE);
	var_Column->PutFilterList(EXGANTTLib::FilterListEnum(EXGANTTLib::exShowFocusItem | EXGANTTLib::exNoItems));
	var_Column->PutFilter(L"to 12/27/2010");
	var_Column->PutFilterType(EXGANTTLib::exDate);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem(COleDateTime(2010,12,27,0,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2010,12,28,0,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2010,12,29,0,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2010,12,30,0,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2010,12,31,0,00,00).operator DATE());
spGantt1->ApplyFilter();
spGantt1->EndUpdate();

788
Is it possible to filter dates

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Dates")));
	var_Column->PutSortType(EXGANTTLib::SortDate);
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_TRUE);
	var_Column->PutDisplayFilterDate(VARIANT_TRUE);
	var_Column->PutFilterList(EXGANTTLib::FilterListEnum(EXGANTTLib::exShowFocusItem | EXGANTTLib::exNoItems));
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem(COleDateTime(2010,12,27,0,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2010,12,28,0,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2010,12,29,0,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2010,12,30,0,00,00).operator DATE());
	var_Items->AddItem(COleDateTime(2010,12,31,0,00,00).operator DATE());
spGantt1->EndUpdate();

787
Is it possible to change the Exclude field name to something different, in the drop down filter window

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot);
spGantt1->PutDescription(EXGANTTLib::exFilterBarExclude,L"Leaving out");
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Items")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_FALSE);
	var_Column->PutFilterList(EXGANTTLib::FilterListEnum(EXGANTTLib::exShowExclude | EXGANTTLib::exShowFocusItem | EXGANTTLib::exShowCheckBox));
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root 1");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
	h = var_Items->AddItem("Root 2");
	var_Items->InsertItem(h,vtMissing,"Child 1");
spGantt1->EndUpdate();

786
How can I display the Exclude field in the drop down filter window

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot);
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Items")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_FALSE);
	var_Column->PutFilterList(EXGANTTLib::FilterListEnum(EXGANTTLib::exShowExclude | EXGANTTLib::exShowFocusItem | EXGANTTLib::exShowCheckBox));
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root 1");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
	h = var_Items->AddItem("Root 2");
	var_Items->InsertItem(h,vtMissing,"Child 1");
spGantt1->EndUpdate();

785
Is it possible to show and ensure the focused item from the control, in the drop down filter window

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot);
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Items")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_FALSE);
	var_Column->PutFilterList(EXGANTTLib::FilterListEnum(EXGANTTLib::exShowFocusItem | EXGANTTLib::exShowCheckBox));
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root 1");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
	h = var_Items->AddItem("Root 2");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->PutSelectItem(var_Items->InsertItem(h,vtMissing,"Child 2"),VARIANT_TRUE);
	var_Items->PutExpandItem(h,VARIANT_TRUE);
spGantt1->EndUpdate();

784
Is it possible to show only blanks items with no listed items from the control

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot);
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Items")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_FALSE);
	var_Column->PutFilterList(EXGANTTLib::FilterListEnum(EXGANTTLib::exShowBlanks | EXGANTTLib::exNoItems));
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root 1");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
	h = var_Items->AddItem("Root 2");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
spGantt1->EndUpdate();

783
How can I include the blanks items in the drop down filter window

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot);
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Items")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_FALSE);
	var_Column->PutFilterList(EXGANTTLib::FilterListEnum(EXGANTTLib::exShowBlanks | EXGANTTLib::exShowCheckBox));
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root 1");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
	h = var_Items->AddItem("Root 2");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
spGantt1->EndUpdate();

782
How can I select multiple items in the drop down filter window, using check-boxes

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot);
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Items")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_FALSE);
	var_Column->PutFilterList(EXGANTTLib::exShowCheckBox);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root 1");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
	h = var_Items->AddItem("Root 2");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
spGantt1->EndUpdate();

781
Is it possible to allow a single item being selected in the drop down filter window

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot);
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Items")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_FALSE);
	var_Column->PutFilterList(EXGANTTLib::exSingleSel);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root 1");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
	h = var_Items->AddItem("Root 2");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
spGantt1->EndUpdate();

780
How can I display no (All) item in the drop down filter window

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot);
spGantt1->PutDescription(EXGANTTLib::exFilterBarAll,L"");
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Items")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_TRUE);
	var_Column->PutFilterList(EXGANTTLib::exNoItems);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root 1");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
	h = var_Items->AddItem("Root 2");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
spGantt1->EndUpdate();

779
Is it possible to display no items in the drop down filter window, so only the pattern is visible

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot);
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Items")));
	var_Column->PutDisplayFilterButton(VARIANT_TRUE);
	var_Column->PutDisplayFilterPattern(VARIANT_TRUE);
	var_Column->PutFilterList(EXGANTTLib::exNoItems);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root 1");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
	h = var_Items->AddItem("Root 2");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
spGantt1->EndUpdate();

778
How can I show the child items with no identation

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutLinesAtRoot(EXGANTTLib::exGroupLinesOutside);
spGantt1->PutIndent(12);
spGantt1->PutHasLines(EXGANTTLib::exThinLine);
spGantt1->GetColumns()->Add(L"Default");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root 1");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->InsertItem(h,vtMissing,"Child 3");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
	h = var_Items->AddItem("Root 2");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->InsertItem(h,vtMissing,"Child 3");

777
Is there other ways of showing the hierarchy lines (exGroupLinesAtRoot)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutLinesAtRoot(EXGANTTLib::exGroupLinesAtRoot);
spGantt1->PutIndent(12);
spGantt1->GetColumns()->Add(L"Default");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->InsertItem(h,vtMissing,"Child 3");
	var_Items->PutExpandItem(h,VARIANT_TRUE);

776
Is there other ways of showing the hierarchy lines (exGroupLinesOutside)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutLinesAtRoot(EXGANTTLib::exGroupLinesOutside);
spGantt1->PutIndent(12);
spGantt1->GetColumns()->Add(L"Default");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root 1");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->InsertItem(h,vtMissing,"Child 3");
	var_Items->PutExpandItem(h,VARIANT_TRUE);
	h = var_Items->AddItem("Root 2");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->InsertItem(h,vtMissing,"Child 3");

775
Is there other ways of showing the hierarchy lines (exGroupLinesInsideLeaf)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutLinesAtRoot(EXGANTTLib::exGroupLinesInsideLeaf);
spGantt1->PutIndent(12);
spGantt1->GetColumns()->Add(L"Default");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->InsertItem(h,vtMissing,"Child 3");
	var_Items->PutExpandItem(h,VARIANT_TRUE);

774
Is there other ways of showing the hierarchy lines (exGroupLinesInside)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutLinesAtRoot(EXGANTTLib::exGroupLinesInside);
spGantt1->PutIndent(12);
spGantt1->GetColumns()->Add(L"Default");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->InsertItem(h,vtMissing,"Child 3");
	var_Items->PutExpandItem(h,VARIANT_TRUE);

773
Is there other ways of showing the hierarchy lines (exGroupLines)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutLinesAtRoot(EXGANTTLib::exGroupLines);
spGantt1->PutIndent(12);
spGantt1->GetColumns()->Add(L"Default");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(var_Items->InsertItem(h,vtMissing,"Child 2"),vtMissing,"SubChild 2");
	var_Items->InsertItem(h,vtMissing,"Child 3");
	var_Items->PutExpandItem(h,VARIANT_TRUE);

772
Is it possible background color displayed when the mouse passes over an item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetColumns()->Add(L"Def");
spGantt1->PutHotBackColor(RGB(0,0,128));
spGantt1->PutHotForeColor(RGB(255,255,255));
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem("Item A");
	var_Items->AddItem("Item B");
	var_Items->AddItem("Item C");
spGantt1->EndUpdate();

771
How can I simulate displaying groups

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutHasLines(EXGANTTLib::exNoLine);
spGantt1->PutScrollBySingleLine(VARIANT_TRUE);
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
EXGANTTLib::IColumnsPtr var_Columns = spGantt1->GetColumns();
	var_Columns->Add(L"Name");
	var_Columns->Add(L"A");
	var_Columns->Add(L"B");
	var_Columns->Add(L"C");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Group 1");
	var_Items->PutCellHAlignment(h,long(0),EXGANTTLib::CenterAlignment);
	var_Items->PutItemDivider(h,0);
	var_Items->PutItemDividerLineAlignment(h,EXGANTTLib::DividerBoth);
	var_Items->PutItemHeight(h,24);
	var_Items->PutSortableItem(h,VARIANT_FALSE);
	long h1 = var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->PutCellCaption(h1,long(1),long(1));
	var_Items->PutCellCaption(h1,long(2),long(2));
	var_Items->PutCellCaption(h1,long(3),long(3));
	h1 = var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->PutCellCaption(h1,long(1),long(4));
	var_Items->PutCellCaption(h1,long(2),long(5));
	var_Items->PutCellCaption(h1,long(3),long(6));
	var_Items->PutExpandItem(h,VARIANT_TRUE);
	h = var_Items->AddItem("Group 2");
	var_Items->PutCellHAlignment(h,long(0),EXGANTTLib::CenterAlignment);
	var_Items->PutItemDivider(h,0);
	var_Items->PutItemDividerLineAlignment(h,EXGANTTLib::DividerBoth);
	var_Items->PutItemHeight(h,24);
	var_Items->PutSortableItem(h,VARIANT_FALSE);
	h1 = var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->PutCellCaption(h1,long(1),long(1));
	var_Items->PutCellCaption(h1,long(2),long(2));
	var_Items->PutCellCaption(h1,long(3),long(3));
	h1 = var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->PutCellCaption(h1,long(1),long(4));
	var_Items->PutCellCaption(h1,long(2),long(5));
	var_Items->PutCellCaption(h1,long(3),long(6));
	var_Items->PutExpandItem(h,VARIANT_TRUE);

770
Is it possible to change the height for all items at once

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot);
spGantt1->GetColumns()->Add(L"Items");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root 1");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
	h = var_Items->AddItem("Root 2");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->PutExpandItem(0,VARIANT_TRUE);
spGantt1->EndUpdate();
spGantt1->PutDefaultItemHeight(12);
spGantt1->GetItems()->PutItemHeight(0,12);

769
Is it possible to specify the cell's value but still want to display some formatted text instead the value

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
spGantt1->GetColumns()->Add(L"Value");
spGantt1->GetColumns()->Add(L"FormatCell");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem(long(1));
	var_Items->PutCellCaption(h,long(1),long(12));
	var_Items->PutFormatCell(h,long(1),L"currency(value)");
	h = var_Items->AddItem(COleDateTime(2001,1,1,0,00,00).operator DATE());
	var_Items->PutCellCaption(h,long(1),COleDateTime(2001,1,1,0,00,00).operator DATE());
	var_Items->PutCellCaptionFormat(h,long(1),EXGANTTLib::exHTML);
	var_Items->PutFormatCell(h,long(1),L"longdate(value) replace '2001' with '<b>2001</b>'");
spGantt1->EndUpdate();

768
Is it possible to specify the cell's value but still want to display some formatted text instead the value

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
spGantt1->PutMarkSearchColumn(VARIANT_FALSE);
EXGANTTLib::IColumnsPtr var_Columns = spGantt1->GetColumns();
	var_Columns->Add(L"Name");
	EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Values")));
		var_Column->PutSortType(EXGANTTLib::SortNumeric);
		var_Column->PutAllowSizing(VARIANT_FALSE);
		var_Column->PutWidth(64);
		var_Column->PutFormatColumn(L"((0:=dbl(value)) < 10? '<fgcolor=808080><font ;7>' :'<b>') + currency(=:0)");
		var_Column->PutDef(EXGANTTLib::exCellCaptionFormat,long(1));
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root");
	var_Items->PutFormatCell(h,long(1),L"'<none>'");
	var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 1"),long(1),long(10));
	var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 2"),long(1),long(15));
	var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 3"),long(1),long(25));
	var_Items->PutExpandItem(h,VARIANT_TRUE);
spGantt1->EndUpdate();

767
I am using the FormatColumn to display the current currency, but would like hide some values. Is it possible

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
spGantt1->PutMarkSearchColumn(VARIANT_FALSE);
EXGANTTLib::IColumnsPtr var_Columns = spGantt1->GetColumns();
	var_Columns->Add(L"Name");
	EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Values")));
		var_Column->PutSortType(EXGANTTLib::SortNumeric);
		var_Column->PutAllowSizing(VARIANT_FALSE);
		var_Column->PutWidth(64);
		var_Column->PutFormatColumn(L"((0:=dbl(value)) < 10? '<fgcolor=808080><font ;7>' :'<b>') + currency(=:0)");
		var_Column->PutDef(EXGANTTLib::exCellCaptionFormat,long(1));
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root");
	var_Items->PutFormatCell(h,long(1),L" ");
	var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 1"),long(1),long(10));
	var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 2"),long(1),long(15));
	var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Child 3"),long(1),long(25));
	var_Items->PutExpandItem(h,VARIANT_TRUE);
spGantt1->EndUpdate();

766
How can I apply the same ConditionalFormat on more than 1(one) column (multiple columns and not on item)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
EXGANTTLib::IConditionalFormatPtr var_ConditionalFormat = spGantt1->GetConditionalFormats()->Add(L"1","K1");
	var_ConditionalFormat->PutBackColor(RGB(255,0,0));
	var_ConditionalFormat->PutApplyTo(EXGANTTLib::FormatApplyToEnum(0x1));
EXGANTTLib::IConditionalFormatPtr var_ConditionalFormat1 = spGantt1->GetConditionalFormats()->Add(L"1","K2");
	var_ConditionalFormat1->PutBackColor(RGB(255,0,0));
	var_ConditionalFormat1->PutApplyTo(EXGANTTLib::FormatApplyToEnum(0x2));
spGantt1->PutMarkSearchColumn(VARIANT_FALSE);
spGantt1->PutDrawGridLines(EXGANTTLib::exRowLines);
EXGANTTLib::IColumnsPtr var_Columns = spGantt1->GetColumns();
	var_Columns->Add(L"Column 1");
	var_Columns->Add(L"Column 2");
	var_Columns->Add(L"Column 3");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem(vtMissing);
	var_Items->AddItem(vtMissing);
	var_Items->AddItem(vtMissing);
spGantt1->EndUpdate();

765
How can I get the list of items as they are displayed
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutBackColorAlternate(RGB(240,240,240));
spGantt1->GetColumns()->Add(L"Names");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem("Mantel");
	var_Items->AddItem("Mechanik");
	var_Items->AddItem("Motor");
	var_Items->AddItem("Murks");
	var_Items->AddItem("Märchen");
	var_Items->AddItem("Möhren");
	var_Items->AddItem("Mühle");
spGantt1->GetColumns()->GetItem(long(0))->PutSortOrder(EXGANTTLib::SortAscending);
spGantt1->EndUpdate();
OutputDebugStringW( _bstr_t(spGantt1->GetItems(long(1))) );

764
Is posible to reduce the size of the picture to be shown in the column's caption

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutHTMLPicture(L"pic1","c:\\exontrol\\images\\zipdisk.gif");
spGantt1->PutHeaderHeight(48);
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"DefaultSize")))->PutHTMLCaption(L"Default-Size <img>pic1</img> Picture");
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"CustomSize")))->PutHTMLCaption(L"Custom-Size <img>pic1:16</img> Picture");
spGantt1->EndUpdate();

763
How can I change the color, font, bold etc for the items/cells in the same column or for the entire column

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutMarkSearchColumn(VARIANT_FALSE);
EXGANTTLib::IConditionalFormatPtr var_ConditionalFormat = spGantt1->GetConditionalFormats()->Add(L"1",vtMissing);
	var_ConditionalFormat->PutBold(VARIANT_TRUE);
	var_ConditionalFormat->PutForeColor(RGB(255,0,0));
	var_ConditionalFormat->PutApplyTo(EXGANTTLib::FormatApplyToEnum(0x1));
spGantt1->GetColumns()->Add(L"C1");
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"C2")));
	var_Column->PutHeaderBold(VARIANT_TRUE);
	var_Column->PutHTMLCaption(L"<fgcolor=FF0000>C2");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->PutCellCaption(var_Items->AddItem(long(10)),long(1),long(11));
	var_Items->PutCellCaption(var_Items->AddItem(long(12)),long(1),long(13));
spGantt1->EndUpdate();

762
The item is not getting selected when clicking the cell's checkbox. What should I do

// CellStateChanged event - Fired after cell's state has been changed.
void OnCellStateChangedGantt1(long   Item,long   ColIndex)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'
		#import <ExGantt.dll>
		using namespace EXGANTTLib;
	*/
	EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
	spGantt1->GetItems()->PutSelectItem(Item,VARIANT_TRUE);
}

EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Check")))->PutDef(EXGANTTLib::exCellHasCheckBox,VARIANT_TRUE);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem(long(0));
	var_Items->AddItem(long(1));
	var_Items->AddItem(long(2));
	var_Items->AddItem(long(3));

761
Is it possible to limit the height of the item while resizing

// AddItem event - Occurs after a new Item has been inserted to Items collection.
void OnAddItemGantt1(long   Item)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'
		#import <ExGantt.dll>
		using namespace EXGANTTLib;
	*/
	EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
	spGantt1->GetItems()->PutItemMinHeight(Item,18);
	spGantt1->GetItems()->PutItemMaxHeight(Item,72);
}

EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutItemsAllowSizing(EXGANTTLib::exResizeItem);
spGantt1->PutScrollBySingleLine(VARIANT_FALSE);
spGantt1->PutBackColorAlternate(RGB(240,240,240));
spGantt1->GetColumns()->Add(L"Names");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem("Mantel");
	var_Items->AddItem("Mechanik");
	var_Items->AddItem("Motor");
	var_Items->AddItem("Murks");
	var_Items->AddItem("Märchen");
	var_Items->AddItem("Möhren");
	var_Items->AddItem("Mühle");
spGantt1->GetColumns()->GetItem(long(0))->PutSortOrder(EXGANTTLib::SortAscending);
spGantt1->EndUpdate();

760
Is it possible to copy the hierarchy of the control using the GetItems method

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot);
spGantt1->GetColumns()->Add(L"Def");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root");
	var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->InsertItem(h,vtMissing,"Child 2");
spGantt1->PutItems(spGantt1->GetItems(long(-1)),vtMissing);

759
Does your control supports multiple lines tooltip

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutHTMLPicture(L"pic1","c:\\exontrol\\images\\zipdisk.gif");
spGantt1->PutToolTipDelay(1);
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"tootip")))->PutToolTip(_bstr_t("<br><font Tahoma;10>This</font> is a <b>multi-lines</b> tooltip assigned to a column. The tooltip supports built-in HTML tags, ") +
"icons and pictures.<br><br><br><img>pic1</img> picture ... <br><br>");

758
It is possible to write the word in red/color or to add a tooltip or a link to the word

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Task");
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutLevelCount(2);
	var_Chart->PutFirstVisibleDate(COleDateTime(2000,12,26,0,00,00).operator DATE());
	var_Chart->PutPaneWidth(VARIANT_FALSE,32);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h1 = var_Items->AddItem("Task 1");
	var_Items->AddBar(h1,"",COleDateTime(2001,1,1,0,00,00).operator DATE(),COleDateTime(2001,1,5,0,00,00).operator DATE(),"K1","some <fgcolor=FF0000>red</fgcolor> text");
	var_Items->PutItemBar(h1,"K1",EXGANTTLib::exBarPercent,VARIANT_FALSE);
	var_Items->PutItemBar(h1,"K1",EXGANTTLib::exBarToolTip,"And here goes the <b>tooltip</b> of the text. ");
	var_Items->AddItem("");
	var_Items->AddItem("");
	var_Items->AddItem("");
	var_Items->AddItem("");
	long h2 = var_Items->AddItem("Task 2");
	var_Items->AddBar(h2,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing);
	var_Items->PutItemBar(h2,"K2",EXGANTTLib::exBarToolTip,"And here goes the <b>tooltip</b> of the bar. ");
	var_Items->AddLink("L1",h1,"K1",h2,"K2");
	var_Items->PutLink("L1",EXGANTTLib::exLinkText,"L<b>inke</b>d to a bar");
	var_Items->PutLink("L1",EXGANTTLib::exLinkToolTip,"And here goes the <b>tooltip</b> of the link. ");

757
It is possible to use seconds/minutes/hours as time scale in your control, but using my regional settings

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutLabel(EXGANTTLib::exMonth,L"<|><%loc_m1%><|><%loc_m2%><|><%loc_m3%><|><%loc_mmmm%><|><%loc_m3%> '<%yy%><|><%loc_mmmm%> <%yyyy%>");
	var_Chart->PutLabel(EXGANTTLib::exWeek,L"<|><%ww%><|><%loc_m3%> <%d%>, '<%yy%><r><%ww%><|><%loc_mmmm%> <%d%>, <%yyyy%><r><%ww%><||><||>256");
	var_Chart->PutLabel(EXGANTTLib::exDay,_bstr_t("<|><%loc_d1%><|><%loc_d2%><|><%loc_d3%><|><%loc_dddd%><|><%loc_d3%>, <%loc_m3%> <%d%>, '<%yy%><|><%loc_dddd%>, <%loc_mmmm%> <%d") +
"%>, <%yyyy%><||><||>4096");
	var_Chart->PutLabel(EXGANTTLib::exHour,_bstr_t("<|><%hh%><|><%h%> <%AM/PM%><|><%loc_d3%>, <%loc_m3%> <%d%>, '<%yy%> <%h%> <%AM/PM%><|><%loc_dddd%>, <%loc_mmmm%> <%d%>, <%yyyy%") +
"> <%h%> <%AM/PM%><||><||>65536");
	var_Chart->PutLabel(EXGANTTLib::exMinute,_bstr_t("<|><%nn%><|><%h%>:<%nn%> <%AM/PM%><|><%loc_d3%>, <%loc_m3%> <%d%>, '<%yy%> <%h%>:<%nn%> <%AM/PM%><|><%loc_dddd%>, <%loc_mmmm%> ") +
"<%d%>, <%yyyy%> <%h%>:<%nn%> <%AM/PM%>");
	var_Chart->PutLabel(EXGANTTLib::exSecond,_bstr_t("<|><%ss%><|><%nn%>:<%ss%><|><%h%>:<%nn%>:<%ss%> <%AM/PM%><|><%loc_d3%>, <%loc_m3%> <%d%>, '<%yy%> <%h%>:<%nn%>:<%ss%> <%AM/PM%>") +
"<|><%loc_dddd%>, <%loc_mmmm%> <%d%>, <%yyyy%> <%h%>:<%nn%>:<%ss%> <%AM/PM%>");
	var_Chart->PutLabelToolTip(EXGANTTLib::exMonth,L"<%loc_mmmm%>/<%yyyy%>");
	var_Chart->PutLabelToolTip(EXGANTTLib::exWeek,L"<%loc_mmmm%> <%d%>, <%yyyy%> <%ww%>");
	var_Chart->PutLabelToolTip(EXGANTTLib::exDay,L"<%loc_dddd%>, <%loc_mmmm%> <%d%>, <%yyyy%>");
	var_Chart->PutLabelToolTip(EXGANTTLib::exHour,L"<%loc_dddd%>, <%loc_mmmm%> <%d%>, <%yyyy%> <%h%> <%AM/PM%>");
	var_Chart->PutLabelToolTip(EXGANTTLib::exMinute,L"<%loc_dddd%>, <%loc_mmmm%> <%d%>, <%yyyy%> <%h%>:<%nn%> <%AM/PM%>");
	var_Chart->PutLabelToolTip(EXGANTTLib::exSecond,L"<%loc_dddd%>, <%loc_mmmm%> <%d%>, <%yyyy%> <%h%>:<%nn%>:<%ss%> <%AM/PM%>");
EXGANTTLib::IChartPtr var_Chart1 = spGantt1->GetChart();
	var_Chart1->PutPaneWidth(VARIANT_FALSE,0);
	var_Chart1->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE());
	var_Chart1->PutLevelCount(4);
	var_Chart1->GetLevel(0)->PutLabel(long(4096));
	var_Chart1->GetLevel(1)->PutLabel(long(65536));
	var_Chart1->GetLevel(2)->PutLabel(long(1048576));
	EXGANTTLib::ILevelPtr var_Level = var_Chart1->GetLevel(3);
		var_Level->PutCount(15);
		var_Level->PutLabel(long(16777216));
spGantt1->EndUpdate();

756
The chart's header is displayed in English. Can I change so it is the same as in my regional settings

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutLabel(EXGANTTLib::exMonth,L"<|><%loc_m1%><|><%loc_m2%><|><%loc_m3%><|><%loc_mmmm%><|><%loc_m3%> '<%yy%><|><%loc_mmmm%> <%yyyy%>");
	var_Chart->PutLabel(EXGANTTLib::exWeek,L"<|><%ww%><|><%loc_m3%> <%d%>, '<%yy%><r><%ww%><|><%loc_mmmm%> <%d%>, <%yyyy%><r><%ww%><||><||>256");
	var_Chart->PutLabel(EXGANTTLib::exDay,_bstr_t("<|><%loc_d1%><|><%loc_d2%><|><%loc_d3%><|><%loc_dddd%><|><%loc_d3%>, <%loc_m3%> <%d%>, '<%yy%><|><%loc_dddd%>, <%loc_mmmm%> <%d") +
"%>, <%yyyy%><||><||>4096");
	var_Chart->PutLabel(EXGANTTLib::exHour,_bstr_t("<|><%hh%><|><%h%> <%AM/PM%><|><%loc_d3%>, <%loc_m3%> <%d%>, '<%yy%> <%h%> <%AM/PM%><|><%loc_dddd%>, <%loc_mmmm%> <%d%>, <%yyyy%") +
"> <%h%> <%AM/PM%><||><||>65536");
	var_Chart->PutLabel(EXGANTTLib::exMinute,_bstr_t("<|><%nn%><|><%h%>:<%nn%> <%AM/PM%><|><%loc_d3%>, <%loc_m3%> <%d%>, '<%yy%> <%h%>:<%nn%> <%AM/PM%><|><%loc_dddd%>, <%loc_mmmm%> ") +
"<%d%>, <%yyyy%> <%h%>:<%nn%> <%AM/PM%>");
	var_Chart->PutLabel(EXGANTTLib::exSecond,_bstr_t("<|><%ss%><|><%nn%>:<%ss%><|><%h%>:<%nn%>:<%ss%> <%AM/PM%><|><%loc_d3%>, <%loc_m3%> <%d%>, '<%yy%> <%h%>:<%nn%>:<%ss%> <%AM/PM%>") +
"<|><%loc_dddd%>, <%loc_mmmm%> <%d%>, <%yyyy%> <%h%>:<%nn%>:<%ss%> <%AM/PM%>");
	var_Chart->PutLabelToolTip(EXGANTTLib::exMonth,L"<%loc_mmmm%>/<%yyyy%>");
	var_Chart->PutLabelToolTip(EXGANTTLib::exWeek,L"<%loc_mmmm%> <%d%>, <%yyyy%> <%ww%>");
	var_Chart->PutLabelToolTip(EXGANTTLib::exDay,L"<%loc_dddd%>, <%loc_mmmm%> <%d%>, <%yyyy%>");
	var_Chart->PutLabelToolTip(EXGANTTLib::exHour,L"<%loc_dddd%>, <%loc_mmmm%> <%d%>, <%yyyy%> <%h%> <%AM/PM%>");
	var_Chart->PutLabelToolTip(EXGANTTLib::exMinute,L"<%loc_dddd%>, <%loc_mmmm%> <%d%>, <%yyyy%> <%h%>:<%nn%> <%AM/PM%>");
	var_Chart->PutLabelToolTip(EXGANTTLib::exSecond,L"<%loc_dddd%>, <%loc_mmmm%> <%d%>, <%yyyy%> <%h%>:<%nn%>:<%ss%> <%AM/PM%>");
EXGANTTLib::IChartPtr var_Chart1 = spGantt1->GetChart();
	var_Chart1->PutPaneWidth(VARIANT_FALSE,0);
	var_Chart1->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE());
	var_Chart1->PutLevelCount(2);
	var_Chart1->PutUnitScale(EXGANTTLib::exDay);
spGantt1->EndUpdate();

755
It is possible to use seconds/minutes/hours as time scale in your control

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutPaneWidth(VARIANT_FALSE,0);
	var_Chart->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE());
	var_Chart->PutLevelCount(4);
	var_Chart->GetLevel(0)->PutLabel(long(4096));
	var_Chart->GetLevel(1)->PutLabel(long(65536));
	var_Chart->GetLevel(2)->PutLabel(long(1048576));
	EXGANTTLib::ILevelPtr var_Level = var_Chart->GetLevel(3);
		var_Level->PutCount(15);
		var_Level->PutLabel(long(16777216));
spGantt1->EndUpdate();

754
How can I prevent highlighting the column from the cursor - point

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetVisualAppearance()->Add(1,_bstr_t("gBFLBCJwBAEHhEJAEGg4BI0IQAAYAQGKIYBkAKBQAGaAoDDUOQzQwAAxDKKUEwsACEIrjKCYVgOHYYRrIMYgBCMJhLEoaZLhEZRQiqDYtRDFQBSDDcPw/EaRZohGaYJ") +
"gEgI=");
spGantt1->PutBackground(EXGANTTLib::exCursorHoverColumn,0x1000000);
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"S")))->PutWidth(32);
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Level 1")))->PutLevelKey(long(1));
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Level 2")))->PutLevelKey(long(1));
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Level 3")))->PutLevelKey(long(1));
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"E1")))->PutWidth(32);
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"E2")))->PutWidth(32);
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"E3")))->PutWidth(32);
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"E4")))->PutWidth(32);

753
Can I use and display PNG pictures

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->PutHTMLPicture(L"pic1","c:\\exontrol\\images\\card.png");
spGantt1->PutHeaderHeight(48);
((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"ColumnName")))->PutHTMLCaption(L"<b>HTML</b> Column <img>pic1</img> Picture");

752
Is it possible to specify the background color for the item in the chart part only

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Default");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root");
	long hC = var_Items->InsertItem(h,vtMissing,"Child 1");
	spGantt1->GetChart()->PutItemBackColor(hC,RGB(255,0,0));
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);

751
Is it possible to apply different visual appearance, color, sizes for item in the list and chart part

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spGantt1->GetVisualAppearance()->Add(2,"c:\\exontrol\\images\\pushed.ebn");
spGantt1->GetVisualAppearance()->Add(3,"CP:2 2 2 -2 -2");
spGantt1->GetColumns()->Add(L"Default");
spGantt1->PutSelBackMode(EXGANTTLib::exTransparent);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root");
	long hC = var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->PutItemBackColor(hC,0x1ffff00);
	spGantt1->GetChart()->PutItemBackColor(hC,0x300ff00);
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);

750
How do I change the visual appearance for the entire item, using your EBN technology

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spGantt1->GetColumns()->Add(L"Default");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root");
	long hC = var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->PutItemBackColor(hC,0x1000000);
	spGantt1->GetChart()->PutItemBackColor(hC,0x1000000);
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);

749
is it possible to specify the a different background color for the item, list and chart part

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Default");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root");
	long hC = var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->PutItemBackColor(hC,RGB(255,0,0));
	spGantt1->GetChart()->PutItemBackColor(hC,RGB(255,255,0));
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);

748
Is it possible to specify the background color for the entire row, including the chart part

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Default");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Root");
	long hC = var_Items->InsertItem(h,vtMissing,"Child 1");
	var_Items->PutItemBackColor(hC,RGB(255,0,0));
	spGantt1->GetChart()->PutItemBackColor(hC,RGB(255,0,0));
	var_Items->InsertItem(h,vtMissing,"Child 2");
	var_Items->PutExpandItem(h,VARIANT_TRUE);

747
How can I show the tooltip programmatically ( I want to be able to set the tooltip content dynamically just before the tooltip start to appear, not using the exBarTooltip )

// MouseMove event - Occurs when the user moves the mouse.
void OnMouseMoveGantt1(short   Button,short   Shift,long   X,long   Y)
{
	/*
		Copy and paste the following directives to your header file as
		it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'
		#import <ExGantt.dll>
		using namespace EXGANTTLib;
	*/
	EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
	spGantt1->ShowToolTip(spGantt1->GetChart()->GetBarFromPoint(-1,-1),"","8","8",vtMissing);
}

EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetColumns()->Add(L"Def");
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutPaneWidth(VARIANT_FALSE,64);
	var_Chart->PutLevelCount(2);
	var_Chart->PutFirstVisibleDate(COleDateTime(2010,1,1,0,00,00).operator DATE());
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Task");
	var_Items->AddBar(h,"Task",COleDateTime(2010,1,2,0,00,00).operator DATE(),COleDateTime(2010,1,5,0,00,00).operator DATE(),"A","A");
	var_Items->AddBar(h,"Task",COleDateTime(2010,1,5,0,00,00).operator DATE(),COleDateTime(2010,1,8,0,00,00).operator DATE(),"B","B");
	var_Items->AddBar(h,"Task",COleDateTime(2010,1,8,0,00,00).operator DATE(),COleDateTime(2010,1,11,0,00,00).operator DATE(),"C","C");
spGantt1->EndUpdate();

746
Is it possible to move an item from a parent to another

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot);
spGantt1->GetColumns()->Add(L"Items");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem("A");
	var_Items->AddItem("B");
	var_Items->InsertItem(var_Items->AddItem("C"),"","D");
	var_Items->SetParent(var_Items->GetFindItem("D",long(0),vtMissing),var_Items->GetFindItem("A",long(0),vtMissing));
spGantt1->EndUpdate();

745
How can I change the identation for an item

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot);
spGantt1->GetColumns()->Add(L"Items");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem("A");
	var_Items->AddItem("B");
	var_Items->InsertItem(var_Items->AddItem("C"),"","D");
	var_Items->SetParent(var_Items->GetFindItem("D",long(0),vtMissing),0);
spGantt1->EndUpdate();

744
How can I specify the levels using the user's Regional and Language Options

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetFont()->PutName(L"Arial Unicode MS");
spGantt1->PutHeaderHeight(36);
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutFirstVisibleDate(COleDateTime(2010,5,30,0,00,00).operator DATE());
	var_Chart->PutPaneWidth(VARIANT_FALSE,0);
	var_Chart->PutFirstWeekDay(EXGANTTLib::exMonday);
	var_Chart->PutUnitWidth(36);
	var_Chart->PutLevelCount(2);
	EXGANTTLib::ILevelPtr var_Level = var_Chart->GetLevel(0);
		var_Level->PutLabel("<b><%loc_mmmm%></b> <%yyyy%><br><%loc_sdate%><r> <%ww%> ");
		var_Level->PutToolTip(var_Level->GetLabel());
		var_Level->PutUnit(EXGANTTLib::exWeek);
	EXGANTTLib::ILevelPtr var_Level1 = var_Chart->GetLevel(1);
		var_Level1->PutLabel("<%loc_ddd%><br><%d%>");
		var_Level1->PutToolTip(var_Level1->GetLabel());
	var_Chart->PutToolTip(L"<%loc_ldate%>");
spGantt1->EndUpdate();

743
How can I display a bar only using a gradient color and shadow

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutFirstVisibleDate(COleDateTime(2009,12,31,0,00,00).operator DATE());
	var_Chart->PutLevelCount(2);
	var_Chart->PutPaneWidth(VARIANT_FALSE,96);
	EXGANTTLib::IBarPtr var_Bar = var_Chart->GetBars()->GetItem("Task");
		var_Bar->PutStartColor(RGB(255,255,255));
		var_Bar->PutEndColor(var_Bar->GetColor());
spGantt1->GetColumns()->Add(L"Types");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddBar(var_Items->AddItem("Original"),"Task",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
	long h = var_Items->AddItem("W/h Gradient");
	var_Items->AddBar(h,"Task",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
	var_Items->PutItemBar(h,"",EXGANTTLib::exBarPattern,long(8291));
	var_Items->AddBar(var_Items->AddItem("Original"),"Task",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
spGantt1->EndUpdate();

742
Is it possible to display a bar only using a gradient color using the exBarColor option

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutFirstVisibleDate(COleDateTime(2009,12,31,0,00,00).operator DATE());
	var_Chart->PutLevelCount(2);
	var_Chart->PutPaneWidth(VARIANT_FALSE,96);
	EXGANTTLib::IBarPtr var_Bar = var_Chart->GetBars()->GetItem("Task");
		var_Bar->PutStartColor(RGB(255,255,255));
		var_Bar->PutEndColor(var_Bar->GetStartColor());
		var_Bar->PutHeight(17);
spGantt1->GetColumns()->Add(L"Types");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddBar(var_Items->AddItem("Original"),"Task",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
	long h = var_Items->AddItem("W/h Gradient");
	var_Items->AddBar(h,"Task",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
	var_Items->PutItemBar(h,"",EXGANTTLib::exBarPattern,long(227));
	h = var_Items->AddItem("W/h Color");
	var_Items->AddBar(h,"Task",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
	var_Items->PutItemBar(h,"",EXGANTTLib::exBarPattern,long(227));
	var_Items->PutItemBar(h,"",EXGANTTLib::exBarColor,long(255));
	var_Items->AddBar(var_Items->AddItem("Original"),"Task",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
spGantt1->EndUpdate();

741
Is it possible to display a bar only using a gradient color

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutFirstVisibleDate(COleDateTime(2009,12,31,0,00,00).operator DATE());
	var_Chart->PutLevelCount(2);
	var_Chart->PutPaneWidth(VARIANT_FALSE,96);
	EXGANTTLib::IBarPtr var_Bar = var_Chart->GetBars()->GetItem("Task");
		var_Bar->PutStartColor(RGB(255,255,255));
		var_Bar->PutEndColor(var_Bar->GetStartColor());
		var_Bar->PutHeight(17);
spGantt1->GetColumns()->Add(L"Types");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddBar(var_Items->AddItem("Original"),"Task",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
	long h = var_Items->AddItem("W/h Gradient");
	var_Items->AddBar(h,"Task",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
	var_Items->PutItemBar(h,"",EXGANTTLib::exBarPattern,long(227));
	var_Items->AddBar(var_Items->AddItem("Original"),"Task",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
spGantt1->EndUpdate();

740
Is it possible to display a bar only using a gradient color

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutFirstVisibleDate(COleDateTime(2009,12,31,0,00,00).operator DATE());
	var_Chart->PutLevelCount(2);
	var_Chart->PutPaneWidth(VARIANT_FALSE,96);
	EXGANTTLib::IBarPtr var_Bar = var_Chart->GetBars()->GetItem("Task");
		var_Bar->PutStartColor(RGB(255,255,255));
		var_Bar->PutEndColor(var_Bar->GetColor());
spGantt1->GetColumns()->Add(L"Types");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddBar(var_Items->AddItem("Original"),"Task",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
	long h = var_Items->AddItem("W/h Gradient");
	var_Items->AddBar(h,"Task",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
	var_Items->PutItemBar(h,"",EXGANTTLib::exBarPattern,long(99));
	var_Items->AddBar(var_Items->AddItem("Original"),"Task",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
spGantt1->EndUpdate();

739
How can I display a specified bar only with a thicker border

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutFirstVisibleDate(COleDateTime(2009,12,31,0,00,00).operator DATE());
	var_Chart->PutLevelCount(2);
	var_Chart->PutPaneWidth(VARIANT_FALSE,96);
spGantt1->GetColumns()->Add(L"Types");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddBar(var_Items->AddItem("Original"),"Task",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
	long h = var_Items->AddItem("W/h Border");
	var_Items->AddBar(h,"Task",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
	var_Items->PutItemBar(h,"",EXGANTTLib::exBarPattern,long(4099));
	var_Items->AddBar(var_Items->AddItem("Original"),"Task",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
spGantt1->EndUpdate();

738
Is it possible to display the shadow for a specified bar

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutFirstVisibleDate(COleDateTime(2009,12,31,0,00,00).operator DATE());
	var_Chart->PutLevelCount(2);
	var_Chart->PutPaneWidth(VARIANT_FALSE,96);
spGantt1->GetColumns()->Add(L"Types");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddBar(var_Items->AddItem("Original"),"Task",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
	long h = var_Items->AddItem("W/h Shadow");
	var_Items->AddBar(h,"Task",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
	var_Items->PutItemBar(h,"",EXGANTTLib::exBarPattern,long(8195));
	var_Items->AddBar(var_Items->AddItem("Original"),"Task",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
spGantt1->EndUpdate();

737
Is it possible to display the task bars with a gradient color

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutFirstVisibleDate(COleDateTime(2009,12,31,0,00,00).operator DATE());
	var_Chart->PutLevelCount(2);
	var_Chart->PutPaneWidth(VARIANT_FALSE,96);
	var_Chart->GetBars()->Copy(L"Task",L"TaskO");
	EXGANTTLib::IBarPtr var_Bar = var_Chart->GetBars()->GetItem("Task");
		var_Bar->PutPattern(EXGANTTLib::PatternEnum(EXGANTTLib::exPatternGradientVBox | EXGANTTLib::exPatternBox | EXGANTTLib::exPatternShadow));
		var_Bar->PutStartColor(RGB(255,255,255));
		var_Bar->PutEndColor(var_Bar->GetColor());
spGantt1->GetColumns()->Add(L"Types");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddBar(var_Items->AddItem("Original"),"TaskO",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Pattern Gradient"),"Task",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Original"),"TaskO",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
spGantt1->EndUpdate();

736
How can I know the type of bars I can displays using predefined patterns

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutFirstVisibleDate(COleDateTime(2009,12,31,0,00,00).operator DATE());
	var_Chart->PutLevelCount(2);
	var_Chart->PutPaneWidth(VARIANT_FALSE,96);
	EXGANTTLib::IBarsPtr var_Bars = var_Chart->GetBars();
		var_Bars->Add(L"Box")->PutPattern(EXGANTTLib::exPatternBox);
		var_Bars->Add(L"ThickBox")->PutPattern(EXGANTTLib::PatternEnum(EXGANTTLib::exPatternThickBox | EXGANTTLib::exPatternBox));
		var_Bars->Add(L"DiagBox")->PutPattern(EXGANTTLib::PatternEnum(EXGANTTLib::exPatternThickBox | EXGANTTLib::exPatternBDiagonal));
		var_Bars->Copy(L"Task",L"Shadow")->PutPattern(EXGANTTLib::PatternEnum(EXGANTTLib::exPatternFrameShadow | EXGANTTLib::exPatternShadow));
		var_Bars->Copy(L"Task",L"TShadow")->PutPattern(EXGANTTLib::PatternEnum(EXGANTTLib::exPatternFrameShadow | EXGANTTLib::exPatternThickBox | EXGANTTLib::exPatternDiagCross));
		EXGANTTLib::IBarPtr var_Bar = var_Bars->Add(L"HGrad1");
			var_Bar->PutPattern(EXGANTTLib::exPatternBox);
			var_Bar->PutStartColor(RGB(255,255,255));
			var_Bar->PutEndColor(RGB(0,0,255));
		EXGANTTLib::IBarPtr var_Bar1 = var_Bars->Add(L"HGrad2");
			var_Bar1->PutPattern(EXGANTTLib::PatternEnum(EXGANTTLib::exPatternBox | EXGANTTLib::exPatternShadow));
			var_Bar1->PutStartColor(RGB(255,255,255));
			var_Bar1->PutEndColor(RGB(0,0,255));
			var_Bar1->PutColor(RGB(0,0,255));
		EXGANTTLib::IBarPtr var_Bar2 = var_Bars->Add(L"HGrad3");
			var_Bar2->PutPattern(EXGANTTLib::PatternEnum(EXGANTTLib::exPatternGradient3Colors | EXGANTTLib::exPatternBox | EXGANTTLib::exPatternShadow));
			var_Bar2->PutStartColor(RGB(255,255,255));
			var_Bar2->PutEndColor(var_Bar2->GetStartColor());
			var_Bar2->PutColor(RGB(0,0,255));
		EXGANTTLib::IBarPtr var_Bar3 = var_Bars->Add(L"HGrad4");
			var_Bar3->PutPattern(EXGANTTLib::PatternEnum(EXGANTTLib::exPatternThickBox | EXGANTTLib::exPatternGradient3Colors | EXGANTTLib::exPatternBox));
			var_Bar3->PutStartColor(RGB(255,255,255));
			var_Bar3->PutEndColor(var_Bar3->GetStartColor());
			var_Bar3->PutColor(RGB(0,0,255));
		EXGANTTLib::IBarPtr var_Bar4 = var_Bars->Add(L"HGrad5");
			var_Bar4->PutPattern(EXGANTTLib::PatternEnum(EXGANTTLib::exPatternFrameShadow | EXGANTTLib::exPatternGradient3Colors | EXGANTTLib::exPatternBox));
			var_Bar4->PutStartColor(RGB(0,255,0));
			var_Bar4->PutEndColor(RGB(255,0,0));
			var_Bar4->PutColor(RGB(0,0,255));
		EXGANTTLib::IBarPtr var_Bar5 = var_Bars->Add(L"VGrad1");
			var_Bar5->PutPattern(EXGANTTLib::PatternEnum(EXGANTTLib::exPatternGradientVBox | EXGANTTLib::exPatternBox));
			var_Bar5->PutStartColor(RGB(255,255,255));
			var_Bar5->PutEndColor(RGB(0,0,255));
			var_Bar5->PutHeight(14);
		EXGANTTLib::IBarPtr var_Bar6 = var_Bars->Add(L"VGrad2");
			var_Bar6->PutPattern(EXGANTTLib::PatternEnum(EXGANTTLib::exPatternGradientVBox | EXGANTTLib::exPatternBox | EXGANTTLib::exPatternShadow));
			var_Bar6->PutStartColor(RGB(255,255,255));
			var_Bar6->PutEndColor(RGB(0,0,255));
			var_Bar6->PutColor(RGB(0,0,255));
			var_Bar6->PutHeight(14);
		EXGANTTLib::IBarPtr var_Bar7 = var_Bars->Add(L"VGrad3");
			var_Bar7->PutPattern(EXGANTTLib::PatternEnum(EXGANTTLib::exPatternGradient3Colors | EXGANTTLib::exPatternGradientVBox | EXGANTTLib::exPatternBox | EXGANTTLib::exPatternShadow));
			var_Bar7->PutStartColor(RGB(255,255,255));
			var_Bar7->PutEndColor(var_Bar7->GetStartColor());
			var_Bar7->PutColor(RGB(0,0,255));
			var_Bar7->PutHeight(14);
		EXGANTTLib::IBarPtr var_Bar8 = var_Bars->Add(L"VGrad4");
			var_Bar8->PutPattern(EXGANTTLib::PatternEnum(EXGANTTLib::exPatternThickBox | EXGANTTLib::exPatternGradient3Colors | EXGANTTLib::exPatternGradientVBox | EXGANTTLib::exPatternBox));
			var_Bar8->PutStartColor(RGB(255,255,255));
			var_Bar8->PutEndColor(var_Bar8->GetStartColor());
			var_Bar8->PutColor(RGB(0,0,255));
			var_Bar8->PutHeight(-1);
		EXGANTTLib::IBarPtr var_Bar9 = var_Bars->Add(L"VGrad5");
			var_Bar9->PutPattern(EXGANTTLib::PatternEnum(EXGANTTLib::exPatternFrameShadow | EXGANTTLib::exPatternGradient3Colors | EXGANTTLib::exPatternGradientVBox | EXGANTTLib::exPatternBox));
			var_Bar9->PutStartColor(RGB(0,255,0));
			var_Bar9->PutEndColor(RGB(255,0,0));
			var_Bar9->PutColor(RGB(0,0,255));
			var_Bar9->PutHeight(14);
spGantt1->GetColumns()->Add(L"Types");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddBar(var_Items->AddItem("Box"),"Box",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Thick Box"),"ThickBox",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Thick Box Diag"),"DiagBox",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Shadow"),"Shadow",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Thick Shadow"),"TShadow",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Solid Gradient"),"HGrad1",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Pattern Gradient"),"HGrad2",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Pattern Gradient 3 Colors"),"HGrad3",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Solid Gradient 3 Colors"),"HGrad4",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Gradient Shadow"),"HGrad5",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Solid Gradient"),"VGrad1",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Pattern Gradient"),"VGrad2",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Pattern Gradient 3 Colors"),"VGrad3",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Solid Gradient 3 Colors"),"VGrad4",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Gradient Shadow"),"VGrad5",COleDateTime(2010,1,4,0,00,00).operator DATE(),COleDateTime(2010,1,9,0,00,00).operator DATE(),"",vtMissing);
spGantt1->EndUpdate();

735
Is it possible to display the bars with a thicker border

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetColumns()->Add(L"Task");
spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE());
spGantt1->GetChart()->PutPaneWidth(VARIANT_FALSE,48);
spGantt1->GetChart()->GetBars()->Copy(L"Task",L"TaskB")->PutPattern(EXGANTTLib::PatternEnum(EXGANTTLib::exPatternThickBox | EXGANTTLib::exPatternShadow));
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddBar(var_Items->AddItem("Task 1"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,5,0,00,00).operator DATE(),"",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Task 2"),"TaskB",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,5,0,00,00).operator DATE(),"",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Task 3"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,5,0,00,00).operator DATE(),"",vtMissing);
spGantt1->EndUpdate();

734
Is it possible to display the shadow for EBN bars

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spGantt1->GetColumns()->Add(L"Task");
spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE());
spGantt1->GetChart()->PutPaneWidth(VARIANT_FALSE,48);
EXGANTTLib::IBarPtr var_Bar = spGantt1->GetChart()->GetBars()->Copy(L"Task",L"EBN");
	var_Bar->PutColor(0x1000000);
	var_Bar->PutPattern(EXGANTTLib::exPatternFrameShadow);
spGantt1->GetChart()->GetBars()->Copy(L"Task",L"EBN2")->PutColor(0x1000000);
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddBar(var_Items->AddItem("Task 1"),"EBN2",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,5,0,00,00).operator DATE(),"",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Task 2"),"EBN",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,5,0,00,00).operator DATE(),"",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Task 3"),"EBN2",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,5,0,00,00).operator DATE(),"",vtMissing);
spGantt1->EndUpdate();

733
Can I display a shadow for my bars

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetColumns()->Add(L"Task");
spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE());
spGantt1->GetChart()->PutPaneWidth(VARIANT_FALSE,48);
spGantt1->GetChart()->GetBars()->GetItem("Task")->PutPattern(EXGANTTLib::PatternEnum(EXGANTTLib::exPatternFrameShadow | EXGANTTLib::exPatternShadow));
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddBar(var_Items->AddItem("Task 1"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,5,0,00,00).operator DATE(),"",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Task 2"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,5,0,00,00).operator DATE(),"",vtMissing);
spGantt1->EndUpdate();

732
How can I use the Color property for gradient bars

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetColumns()->Add(L"Task");
spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE());
spGantt1->GetChart()->PutPaneWidth(VARIANT_FALSE,48);
EXGANTTLib::IBarPtr var_Bar = spGantt1->GetChart()->GetBars()->Add(L"V");
	var_Bar->PutColor(RGB(255,0,0));
	var_Bar->PutStartColor(RGB(0,255,0));
	var_Bar->PutEndColor(var_Bar->GetStartColor());
	var_Bar->PutPattern(EXGANTTLib::PatternEnum(EXGANTTLib::exPatternGradient3Colors | EXGANTTLib::exPatternGradientVBox | EXGANTTLib::exPatternBox));
	var_Bar->PutHeight(-1);
EXGANTTLib::IBarPtr var_Bar1 = spGantt1->GetChart()->GetBars()->Add(L"H");
	var_Bar1->PutColor(RGB(255,0,0));
	var_Bar1->PutStartColor(RGB(0,255,0));
	var_Bar1->PutEndColor(var_Bar1->GetStartColor());
	var_Bar1->PutPattern(EXGANTTLib::PatternEnum(EXGANTTLib::exPatternGradient3Colors | EXGANTTLib::exPatternBox));
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddBar(var_Items->AddItem("Task 1"),"V",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,5,0,00,00).operator DATE(),"",vtMissing);
	var_Items->AddBar(var_Items->AddItem("Task 2"),"H",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,5,0,00,00).operator DATE(),"",vtMissing);
spGantt1->EndUpdate();

731
Is there any option to show bars with vertical gradient

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->GetColumns()->Add(L"Task");
spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE());
EXGANTTLib::IBarPtr var_Bar = spGantt1->GetChart()->GetBars()->GetItem("Task");
	var_Bar->PutColor(RGB(255,0,0));
	var_Bar->PutStartColor(RGB(0,255,0));
	var_Bar->PutEndColor(RGB(255,255,0));
	var_Bar->PutPattern(EXGANTTLib::PatternEnum(EXGANTTLib::exPatternGradientVBox | EXGANTTLib::exPatternBox));
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("Task");
	var_Items->AddBar(h,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,5,0,00,00).operator DATE(),"",vtMissing);

730
How can I define a new milestone bar

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE());
EXGANTTLib::IBarsPtr var_Bars = spGantt1->GetChart()->GetBars();
	var_Bars->AddShapeCorner(long(12345),long(1));
	var_Bars->AddShapeCorner(long(12346),long(2));
	var_Bars->Copy(L"Milestone",L"M1")->PutStartShape(EXGANTTLib::ShapeCornerEnum(0x3020 | EXGANTTLib::exShapeIconVBar | EXGANTTLib::exShapeIconRight));
	var_Bars->Copy(L"Milestone",L"M2")->PutStartShape(EXGANTTLib::ShapeCornerEnum(0x3020 | EXGANTTLib::exShapeIconSquare | EXGANTTLib::exShapeIconRight));
	EXGANTTLib::IBarPtr var_Bar = var_Bars->Copy(L"Milestone",L"MP");
		var_Bar->PutStartShape(EXGANTTLib::exShapeIconStar);
		var_Bar->PutStartColor(RGB(255,0,0));
spGantt1->GetColumns()->Add(L"Column");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddBar(var_Items->AddItem("Default"),"Milestone",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,2,0,00,00).operator DATE(),vtMissing,vtMissing);
	var_Items->AddBar(var_Items->AddItem("Predefined"),"MP",COleDateTime(2001,1,3,0,00,00).operator DATE(),COleDateTime(2001,1,3,0,00,00).operator DATE(),vtMissing,vtMissing);
	var_Items->AddBar(var_Items->AddItem("Custom 1"),"M1",COleDateTime(2001,1,4,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing);
	var_Items->AddBar(var_Items->AddItem("Custom 2"),"M2",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,5,0,00,00).operator DATE(),vtMissing,vtMissing);
spGantt1->EndUpdate();

729
How can I define my milestone bar, using my icons or pictures

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE());
EXGANTTLib::IBarsPtr var_Bars = spGantt1->GetChart()->GetBars();
	var_Bars->AddShapeCorner(long(12345),long(1));
	var_Bars->GetItem("Milestone")->PutStartShape(EXGANTTLib::ShapeCornerEnum(0x3020 | EXGANTTLib::exShapeIconVBar | EXGANTTLib::exShapeIconRight));
spGantt1->GetColumns()->Add(L"Column");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddBar(var_Items->AddItem("Item 1"),"Milestone",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,2,0,00,00).operator DATE(),vtMissing,vtMissing);

728
I haven't found options to localize (in Italian) the strings ( dates, tooltip ) that shows in the chart area

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutLevelCount(2);
	var_Chart->PutPaneWidth(VARIANT_FALSE,0);
	var_Chart->PutLabel(EXGANTTLib::exWeek,L"<|><%ww%><|><%d%> <%m3%> '<%yy%><r><%ww%><|><%d%> <%mmmm%> <%yyyy%><r><%ww%><||><||>256");
	var_Chart->PutLabel(EXGANTTLib::exDay,L"<|><%d1%><|><%d2%><|><%d3%><|><%dddd%><|><%d3%> <%d%> <%m3%> '<%yy%><|><%dddd%> <%d%> <%mmmm%> <%yyyy%><||><||>4096");
	var_Chart->PutLabelToolTip(EXGANTTLib::exWeek,L"<%d%> <%mmmm%> <%yyyy%> <%ww%>");
	var_Chart->PutLabelToolTip(EXGANTTLib::exDay,L"<%dddd%> <%d%> <%mmmm%> <%yyyy%>");
	var_Chart->PutFirstWeekDay(EXGANTTLib::exMonday);
	var_Chart->PutMonthNames(L"gennaio febbraio marzo aprile maggio giugno luglio agosto settembre ottobre novembre dicembre");
	var_Chart->PutWeekDays(L"domenica lunedì martedì mercoledì giovedì venerdì sabato");
	var_Chart->PutToolTip(L"<%dddd%> <%d%> <%mmmm%> <%yyyy%>");
	var_Chart->PutUnitScale(EXGANTTLib::exDay);
spGantt1->EndUpdate();

727
I haven't found options to localize (in Dutch) the strings ( dates, tooltip ) that shows in the chart area

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutLevelCount(2);
	var_Chart->PutPaneWidth(VARIANT_FALSE,0);
	var_Chart->PutLabel(EXGANTTLib::exWeek,L"<|><%ww%><|><%d%> <%m3%> '<%yy%><r><%ww%><|><%d%> <%mmmm%> <%yyyy%><r><%ww%><||><||>256");
	var_Chart->PutLabel(EXGANTTLib::exDay,L"<|><%d1%><|><%d2%><|><%d3%><|><%dddd%><|><%d3%> <%d%> <%m3%> '<%yy%><|><%dddd%> <%d%> <%mmmm%> <%yyyy%><||><||>4096");
	var_Chart->PutLabelToolTip(EXGANTTLib::exWeek,L"<%d%> <%mmmm%> <%yyyy%> <%ww%>");
	var_Chart->PutLabelToolTip(EXGANTTLib::exDay,L"<%dddd%> <%d%> <%mmmm%> <%yyyy%>");
	var_Chart->PutFirstWeekDay(EXGANTTLib::exMonday);
	var_Chart->PutMonthNames(L"januari februari maart april mei juni juli augusts september oktober november december");
	var_Chart->PutWeekDays(L"zondag maandag dinsdag woensdag donderdag vrijdag zaterdag");
	var_Chart->PutToolTip(L"<%dddd%> <%d%> <%mmmm%> <%yyyy%>");
	var_Chart->PutUnitScale(EXGANTTLib::exDay);
spGantt1->EndUpdate();

726
I haven't found options to localize (in German) the strings ( dates, tooltip ) that shows in the chart area

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutLevelCount(2);
	var_Chart->PutPaneWidth(VARIANT_FALSE,0);
	var_Chart->PutLabel(EXGANTTLib::exWeek,L"<|><%ww%><|><%d%> <%m3%> '<%yy%><r><%ww%><|><%d%>.<%mmmm%> <%yyyy%><r><%ww%><||><||>256");
	var_Chart->PutLabel(EXGANTTLib::exDay,L"<|><%d1%><|><%d2%><|><%d3%><|><%dddd%><|><%d3%> <%d%>.<%m3%> '<%yy%><|><%dddd%> <%d%>.<%mmmm%> <%yyyy%><||><||>4096");
	var_Chart->PutLabelToolTip(EXGANTTLib::exWeek,L"<%d%>.<%mmmm%> <%yyyy%> <%ww%>");
	var_Chart->PutLabelToolTip(EXGANTTLib::exDay,L"<%dddd%>, <%d%>.<%mmmm%> <%yyyy%>");
	var_Chart->PutFirstWeekDay(EXGANTTLib::exMonday);
	var_Chart->PutMonthNames(L"Januar Februar März April Mai Juni Juli August September Oktober November Dezember");
	var_Chart->PutWeekDays(L"Sonntag Montag Dienstag Mittwoch Donnerstag Freitag Samstag");
	var_Chart->PutToolTip(L"<%dddd%>,<%d%>.<%mmmm%> <%yyyy%>");
	var_Chart->PutUnitScale(EXGANTTLib::exDay);
spGantt1->EndUpdate();

725
I haven't found options to localize (in French) the strings ( dates, tooltip ) that shows in the chart area

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart();
	var_Chart->PutLevelCount(2);
	var_Chart->PutPaneWidth(VARIANT_FALSE,0);
	var_Chart->PutLabel(EXGANTTLib::exWeek,L"<|><%ww%><|><%d%> <%m3%> '<%yy%><r><%ww%><|><%d%> <%mmmm%> <%yyyy%><r><%ww%><||><||>256");
	var_Chart->PutLabel(EXGANTTLib::exDay,L"<|><%d1%><|><%d2%><|><%d3%><|><%dddd%><|><%d3%> <%d%> <%m3%> '<%yy%><|><%dddd%> <%d%> <%mmmm%> <%yyyy%><||><||>4096");
	var_Chart->PutLabelToolTip(EXGANTTLib::exWeek,L"<%d%> <%mmmm%> <%yyyy%> <%ww%>");
	var_Chart->PutLabelToolTip(EXGANTTLib::exDay,L"<%dddd%> <%d%> <%mmmm%> <%yyyy%>");
	var_Chart->PutFirstWeekDay(EXGANTTLib::exMonday);
	var_Chart->PutMonthNames(L"janvier février mars avril mai juin juillet août septembre octobre novembre décembre");
	var_Chart->PutWeekDays(L"dimanche lundi mardi mercredi jeudi vendredi samedi");
	var_Chart->PutToolTip(L"<%dddd%> <%d%> <%mmmm%> <%yyyy%>");
	var_Chart->PutUnitScale(EXGANTTLib::exDay);
spGantt1->EndUpdate();

724
How can I filter programatically using more columns

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
EXGANTTLib::IColumnsPtr var_Columns = spGantt1->GetColumns();
	var_Columns->Add(L"Car");
	var_Columns->Add(L"Equipment");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->PutCellCaption(var_Items->AddItem("Mazda"),long(1),"Air Bag");
	var_Items->PutCellCaption(var_Items->AddItem("Toyota"),long(1),"Air Bag,Air condition");
	var_Items->PutCellCaption(var_Items->AddItem("Ford"),long(1),"Air condition");
	var_Items->PutCellCaption(var_Items->AddItem("Nissan"),long(1),"Air Bag,ABS,ESP");
	var_Items->PutCellCaption(var_Items->AddItem("Mazda"),long(1),"Air Bag, ABS,ESP");
	var_Items->PutCellCaption(var_Items->AddItem("Mazda"),long(1),"ABS,ESP");
EXGANTTLib::IColumnPtr var_Column = spGantt1->GetColumns()->GetItem("Car");
	var_Column->PutFilterType(EXGANTTLib::exFilter);
	var_Column->PutFilter(L"Mazda");
EXGANTTLib::IColumnPtr var_Column1 = spGantt1->GetColumns()->GetItem("Equipment");
	var_Column1->PutFilterType(EXGANTTLib::exPattern);
	var_Column1->PutFilter(L"*ABS*|*ESP*");
spGantt1->ApplyFilter();
spGantt1->EndUpdate();

723
I have seen the IN function but it returns -1 or 0. How can I display the value being found ( SWITCH usage )

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Value")));
	var_Column->PutWidth(24);
EXGANTTLib::IColumnPtr var_Column1 = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"SWITCH - statment")));
	var_Column1->PutComputedField(L"%0 switch ('not found', 1,2,3,4,5,7,8,9,11,13,14)");
	var_Column1->PutToolTip(var_Column1->GetComputedField());
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem(long(0));
	var_Items->AddItem(long(1));
	var_Items->AddItem(long(2));
spGantt1->EndUpdate();

722
I have a large collection of constant values and using or operator is a time consuming (IN usage). Is there any way to increase the speed to check if a value maches the collection

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Value")));
	var_Column->PutWidth(24);
EXGANTTLib::IColumnPtr var_Column1 = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"IN - statment")));
	var_Column1->PutComputedField(L"%0 in (1,2,3,4,5,7,8,9,11,13,14) ? 'found' : ''");
	var_Column1->PutToolTip(var_Column1->GetComputedField());
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem(long(0));
	var_Items->AddItem(long(1));
	var_Items->AddItem(long(2));
spGantt1->EndUpdate();

721
How can I use the CASE statement (CASE usage)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Value")));
	var_Column->PutWidth(24);
EXGANTTLib::IColumnPtr var_Column1 = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"CASE - statment")));
	var_Column1->PutComputedField(_bstr_t("%0 case (default:'not found';1:%0;2:2*%0;3:3*%0;4:4*%0;5:5*%0;7:'Seven';8:'Eight';9:'Nine';11:'Eleven';13:'Thirtheen';14:'Fourt") +
"heen')");
	var_Column1->PutToolTip(var_Column1->GetComputedField());
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem(long(0));
	var_Items->AddItem(long(1));
	var_Items->AddItem(long(2));
spGantt1->EndUpdate();

720
How can I use the CASE statement (CASE usage)

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Value")));
	var_Column->PutWidth(24);
EXGANTTLib::IColumnPtr var_Column1 = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"CASE - statment")));
	var_Column1->PutComputedField(_bstr_t("%0 case (default:'not found';1:'One';2:'Two';3:'Three';4:'Four';5:'Five';7:'Seven';8:'Eight';9:'Nine';11:'Eleven';13:'Thirtheen") +
"';14:'Fourtheen')");
	var_Column1->PutToolTip(var_Column1->GetComputedField());
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem(long(0));
	var_Items->AddItem(long(1));
	var_Items->AddItem(long(2));
spGantt1->EndUpdate();

719
Is is possible to use HTML tags to display in the filter caption

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutFilterBarPromptVisible(VARIANT_TRUE);
spGantt1->PutFilterBarCaption(L"This is a bit of text being displayed in the filter bar.");
spGantt1->GetColumns()->Add(L"");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->AddItem("Item 1");
	var_Items->AddItem("Item 2");
	var_Items->AddItem("Item 3");
spGantt1->EndUpdate();

718
How can I find the number of items after filtering
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetColumns()->Add(L"");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h = var_Items->AddItem("");
	var_Items->PutCellCaption(h,long(0),var_Items->GetVisibleItemCount());
spGantt1->EndUpdate();

717
How can I change the filter caption

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
spGantt1->PutColumnAutoResize(VARIANT_TRUE);
spGantt1->PutContinueColumnScroll(VARIANT_FALSE);
spGantt1->PutMarkSearchColumn(VARIANT_FALSE);
spGantt1->PutSearchColumnIndex(1);
spGantt1->PutFilterBarPromptVisible(VARIANT_TRUE);
spGantt1->PutFilterBarPromptType(EXGANTTLib::FilterPromptEnum(EXGANTTLib::exFilterPromptWords | EXGANTTLib::exFilterPromptContainsAll));
spGantt1->PutFilterBarPromptPattern(L"london robert");
spGantt1->PutFilterBarCaption(L"<r>Found: ... ");
EXGANTTLib::IColumnsPtr var_Columns = spGantt1->GetColumns();
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h0 = var_Items->AddItem("Nancy Davolio");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Andrew Fuller");
	var_Items->PutCellCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCellCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->AddItem("Janet Leverling");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Kirkland");
	h0 = var_Items->AddItem("Margaret Peacock");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Redmond");
	h0 = var_Items->AddItem("Steven Buchanan");
	var_Items->PutCellCaption(h0,long(1),"Sales Manager");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Michael Suyama");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Robert King");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Laura Callahan");
	var_Items->PutCellCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Anne Dodsworth");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
spGantt1->EndUpdate();

716
While using the filter prompt is it is possible to use wild characters

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
spGantt1->PutColumnAutoResize(VARIANT_TRUE);
spGantt1->PutContinueColumnScroll(VARIANT_FALSE);
spGantt1->PutMarkSearchColumn(VARIANT_FALSE);
spGantt1->PutSearchColumnIndex(1);
spGantt1->PutFilterBarPromptVisible(VARIANT_TRUE);
spGantt1->PutFilterBarPromptType(EXGANTTLib::exFilterPromptPattern);
spGantt1->PutFilterBarPromptPattern(L"lon* seat*");
EXGANTTLib::IColumnsPtr var_Columns = spGantt1->GetColumns();
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h0 = var_Items->AddItem("Nancy Davolio");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Andrew Fuller");
	var_Items->PutCellCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCellCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->AddItem("Janet Leverling");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Kirkland");
	h0 = var_Items->AddItem("Margaret Peacock");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Redmond");
	h0 = var_Items->AddItem("Steven Buchanan");
	var_Items->PutCellCaption(h0,long(1),"Sales Manager");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Michael Suyama");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Robert King");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Laura Callahan");
	var_Items->PutCellCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Anne Dodsworth");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
spGantt1->EndUpdate();

715
How can I list all items that contains any of specified words, not necessary at the beggining

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
spGantt1->PutColumnAutoResize(VARIANT_TRUE);
spGantt1->PutContinueColumnScroll(VARIANT_FALSE);
spGantt1->PutMarkSearchColumn(VARIANT_FALSE);
spGantt1->PutSearchColumnIndex(1);
spGantt1->PutFilterBarPromptVisible(VARIANT_TRUE);
spGantt1->PutFilterBarPromptType(EXGANTTLib::FilterPromptEnum(EXGANTTLib::exFilterPromptStartWords | EXGANTTLib::exFilterPromptContainsAny));
spGantt1->PutFilterBarPromptPattern(L"london davolio");
EXGANTTLib::IColumnsPtr var_Columns = spGantt1->GetColumns();
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h0 = var_Items->AddItem("Nancy Davolio");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Andrew Fuller");
	var_Items->PutCellCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCellCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->AddItem("Janet Leverling");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Kirkland");
	h0 = var_Items->AddItem("Margaret Peacock");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Redmond");
	h0 = var_Items->AddItem("Steven Buchanan");
	var_Items->PutCellCaption(h0,long(1),"Sales Manager");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Michael Suyama");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Robert King");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Laura Callahan");
	var_Items->PutCellCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Anne Dodsworth");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
spGantt1->EndUpdate();

714
How can I list all items that contains any of specified words, not strings

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutColumnAutoResize(VARIANT_TRUE);
spGantt1->PutContinueColumnScroll(VARIANT_FALSE);
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
spGantt1->PutMarkSearchColumn(VARIANT_FALSE);
spGantt1->PutSearchColumnIndex(1);
spGantt1->PutFilterBarPromptVisible(VARIANT_TRUE);
spGantt1->PutFilterBarPromptType(EXGANTTLib::FilterPromptEnum(EXGANTTLib::exFilterPromptWords | EXGANTTLib::exFilterPromptContainsAny));
spGantt1->PutFilterBarPromptPattern(L"london nancy");
EXGANTTLib::IColumnsPtr var_Columns = spGantt1->GetColumns();
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h0 = var_Items->AddItem("Nancy Davolio");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Andrew Fuller");
	var_Items->PutCellCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCellCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->AddItem("Janet Leverling");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Kirkland");
	h0 = var_Items->AddItem("Margaret Peacock");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Redmond");
	h0 = var_Items->AddItem("Steven Buchanan");
	var_Items->PutCellCaption(h0,long(1),"Sales Manager");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Michael Suyama");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Robert King");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Laura Callahan");
	var_Items->PutCellCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Anne Dodsworth");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
spGantt1->EndUpdate();

713
How can I list all items that contains all specified words, not strings

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
spGantt1->PutColumnAutoResize(VARIANT_TRUE);
spGantt1->PutContinueColumnScroll(VARIANT_FALSE);
spGantt1->PutMarkSearchColumn(VARIANT_FALSE);
spGantt1->PutSearchColumnIndex(1);
spGantt1->PutFilterBarPromptVisible(VARIANT_TRUE);
spGantt1->PutFilterBarPromptType(EXGANTTLib::FilterPromptEnum(EXGANTTLib::exFilterPromptWords | EXGANTTLib::exFilterPromptContainsAll));
spGantt1->PutFilterBarPromptPattern(L"london robert");
EXGANTTLib::IColumnsPtr var_Columns = spGantt1->GetColumns();
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h0 = var_Items->AddItem("Nancy Davolio");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Andrew Fuller");
	var_Items->PutCellCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCellCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->AddItem("Janet Leverling");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Kirkland");
	h0 = var_Items->AddItem("Margaret Peacock");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Redmond");
	h0 = var_Items->AddItem("Steven Buchanan");
	var_Items->PutCellCaption(h0,long(1),"Sales Manager");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Michael Suyama");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Robert King");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Laura Callahan");
	var_Items->PutCellCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Anne Dodsworth");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
spGantt1->EndUpdate();

712
I've noticed that the filtering by prompt is not case sensitive, is is possible to make it case sensitive

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutColumnAutoResize(VARIANT_TRUE);
spGantt1->PutContinueColumnScroll(VARIANT_FALSE);
spGantt1->PutMarkSearchColumn(VARIANT_FALSE);
spGantt1->PutSearchColumnIndex(1);
spGantt1->PutFilterBarPromptVisible(VARIANT_TRUE);
spGantt1->PutFilterBarPromptType(EXGANTTLib::FilterPromptEnum(EXGANTTLib::exFilterPromptCaseSensitive | EXGANTTLib::exFilterPromptContainsAny));
spGantt1->PutFilterBarPromptPattern(L"Anne");
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
EXGANTTLib::IColumnsPtr var_Columns = spGantt1->GetColumns();
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h0 = var_Items->AddItem("Nancy Davolio");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Andrew Fuller");
	var_Items->PutCellCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCellCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->AddItem("Janet Leverling");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Kirkland");
	h0 = var_Items->AddItem("Margaret Peacock");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Redmond");
	h0 = var_Items->AddItem("Steven Buchanan");
	var_Items->PutCellCaption(h0,long(1),"Sales Manager");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Michael Suyama");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Robert King");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Laura Callahan");
	var_Items->PutCellCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Anne Dodsworth");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
spGantt1->EndUpdate();

711
Is it possible to list only items that ends with any of specified strings

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutColumnAutoResize(VARIANT_TRUE);
spGantt1->PutContinueColumnScroll(VARIANT_FALSE);
spGantt1->PutMarkSearchColumn(VARIANT_FALSE);
spGantt1->PutSearchColumnIndex(1);
spGantt1->PutFilterBarPromptVisible(VARIANT_TRUE);
spGantt1->PutFilterBarPromptType(EXGANTTLib::exFilterPromptEndWith);
spGantt1->PutFilterBarPromptColumns("0");
spGantt1->PutFilterBarPromptPattern(L"Fuller");
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
EXGANTTLib::IColumnsPtr var_Columns = spGantt1->GetColumns();
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h0 = var_Items->AddItem("Nancy Davolio");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Andrew Fuller");
	var_Items->PutCellCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCellCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->AddItem("Janet Leverling");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Kirkland");
	h0 = var_Items->AddItem("Margaret Peacock");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Redmond");
	h0 = var_Items->AddItem("Steven Buchanan");
	var_Items->PutCellCaption(h0,long(1),"Sales Manager");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Michael Suyama");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Robert King");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Laura Callahan");
	var_Items->PutCellCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Anne Dodsworth");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
spGantt1->EndUpdate();

710
Is it possible to list only items that ends with any of specified strings

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutColumnAutoResize(VARIANT_TRUE);
spGantt1->PutContinueColumnScroll(VARIANT_FALSE);
spGantt1->PutMarkSearchColumn(VARIANT_FALSE);
spGantt1->PutSearchColumnIndex(1);
spGantt1->PutFilterBarPromptVisible(VARIANT_TRUE);
spGantt1->PutFilterBarPromptType(EXGANTTLib::exFilterPromptEndWith);
spGantt1->PutFilterBarPromptColumns("0");
spGantt1->PutFilterBarPromptPattern(L"Fuller");
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
EXGANTTLib::IColumnsPtr var_Columns = spGantt1->GetColumns();
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h0 = var_Items->AddItem("Nancy Davolio");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Andrew Fuller");
	var_Items->PutCellCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCellCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->AddItem("Janet Leverling");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Kirkland");
	h0 = var_Items->AddItem("Margaret Peacock");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Redmond");
	h0 = var_Items->AddItem("Steven Buchanan");
	var_Items->PutCellCaption(h0,long(1),"Sales Manager");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Michael Suyama");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Robert King");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Laura Callahan");
	var_Items->PutCellCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Anne Dodsworth");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
spGantt1->EndUpdate();

709
Is it possible to list only items that starts with any of specified strings

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutColumnAutoResize(VARIANT_TRUE);
spGantt1->PutContinueColumnScroll(VARIANT_FALSE);
spGantt1->PutMarkSearchColumn(VARIANT_FALSE);
spGantt1->PutSearchColumnIndex(1);
spGantt1->PutFilterBarPromptVisible(VARIANT_TRUE);
spGantt1->PutFilterBarPromptType(EXGANTTLib::exFilterPromptStartWith);
spGantt1->PutFilterBarPromptColumns("0");
spGantt1->PutFilterBarPromptPattern(L"An M");
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
EXGANTTLib::IColumnsPtr var_Columns = spGantt1->GetColumns();
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h0 = var_Items->AddItem("Nancy Davolio");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Andrew Fuller");
	var_Items->PutCellCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCellCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->AddItem("Janet Leverling");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Kirkland");
	h0 = var_Items->AddItem("Margaret Peacock");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Redmond");
	h0 = var_Items->AddItem("Steven Buchanan");
	var_Items->PutCellCaption(h0,long(1),"Sales Manager");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Michael Suyama");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Robert King");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Laura Callahan");
	var_Items->PutCellCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Anne Dodsworth");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
spGantt1->EndUpdate();

708
Is it possible to list only items that starts with specified string

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutColumnAutoResize(VARIANT_TRUE);
spGantt1->PutContinueColumnScroll(VARIANT_FALSE);
spGantt1->PutMarkSearchColumn(VARIANT_FALSE);
spGantt1->PutSearchColumnIndex(1);
spGantt1->PutFilterBarPromptVisible(VARIANT_TRUE);
spGantt1->PutFilterBarPromptType(EXGANTTLib::exFilterPromptStartWith);
spGantt1->PutFilterBarPromptColumns("0");
spGantt1->PutFilterBarPromptPattern(L"A");
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
EXGANTTLib::IColumnsPtr var_Columns = spGantt1->GetColumns();
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h0 = var_Items->AddItem("Nancy Davolio");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Andrew Fuller");
	var_Items->PutCellCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCellCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->AddItem("Janet Leverling");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Kirkland");
	h0 = var_Items->AddItem("Margaret Peacock");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Redmond");
	h0 = var_Items->AddItem("Steven Buchanan");
	var_Items->PutCellCaption(h0,long(1),"Sales Manager");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Michael Suyama");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Robert King");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Laura Callahan");
	var_Items->PutCellCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Anne Dodsworth");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
spGantt1->EndUpdate();

707
How can I specify that the list should include any of the seqeunces in the pattern

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutColumnAutoResize(VARIANT_TRUE);
spGantt1->PutContinueColumnScroll(VARIANT_FALSE);
spGantt1->PutMarkSearchColumn(VARIANT_FALSE);
spGantt1->PutSearchColumnIndex(1);
spGantt1->PutFilterBarPromptVisible(VARIANT_TRUE);
spGantt1->PutFilterBarPromptType(EXGANTTLib::exFilterPromptContainsAny);
spGantt1->PutFilterBarPromptPattern(L"london seattle");
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
EXGANTTLib::IColumnsPtr var_Columns = spGantt1->GetColumns();
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h0 = var_Items->AddItem("Nancy Davolio");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Andrew Fuller");
	var_Items->PutCellCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCellCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->AddItem("Janet Leverling");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Kirkland");
	h0 = var_Items->AddItem("Margaret Peacock");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Redmond");
	h0 = var_Items->AddItem("Steven Buchanan");
	var_Items->PutCellCaption(h0,long(1),"Sales Manager");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Michael Suyama");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Robert King");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Laura Callahan");
	var_Items->PutCellCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Anne Dodsworth");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
spGantt1->EndUpdate();

706
How can I specify that all sequences in the filter pattern must be included in the list

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
spGantt1->PutColumnAutoResize(VARIANT_TRUE);
spGantt1->PutContinueColumnScroll(VARIANT_FALSE);
spGantt1->PutMarkSearchColumn(VARIANT_FALSE);
spGantt1->PutSearchColumnIndex(1);
spGantt1->PutFilterBarPromptVisible(VARIANT_TRUE);
spGantt1->PutFilterBarPromptType(EXGANTTLib::exFilterPromptContainsAll);
spGantt1->PutFilterBarPromptPattern(L"london manager");
EXGANTTLib::IColumnsPtr var_Columns = spGantt1->GetColumns();
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h0 = var_Items->AddItem("Nancy Davolio");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Andrew Fuller");
	var_Items->PutCellCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCellCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->AddItem("Janet Leverling");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Kirkland");
	h0 = var_Items->AddItem("Margaret Peacock");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Redmond");
	h0 = var_Items->AddItem("Steven Buchanan");
	var_Items->PutCellCaption(h0,long(1),"Sales Manager");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Michael Suyama");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Robert King");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Laura Callahan");
	var_Items->PutCellCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Anne Dodsworth");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
spGantt1->EndUpdate();

705
How do I change at runtime the filter prompt

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutColumnAutoResize(VARIANT_TRUE);
spGantt1->PutContinueColumnScroll(VARIANT_FALSE);
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
spGantt1->PutMarkSearchColumn(VARIANT_FALSE);
spGantt1->PutSearchColumnIndex(1);
spGantt1->PutFilterBarPromptVisible(VARIANT_TRUE);
spGantt1->PutFilterBarPromptPattern(L"london manager");
EXGANTTLib::IColumnsPtr var_Columns = spGantt1->GetColumns();
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h0 = var_Items->AddItem("Nancy Davolio");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Andrew Fuller");
	var_Items->PutCellCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCellCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->AddItem("Janet Leverling");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Kirkland");
	h0 = var_Items->AddItem("Margaret Peacock");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Redmond");
	h0 = var_Items->AddItem("Steven Buchanan");
	var_Items->PutCellCaption(h0,long(1),"Sales Manager");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Michael Suyama");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Robert King");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Laura Callahan");
	var_Items->PutCellCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Anne Dodsworth");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
spGantt1->EndUpdate();

704
How do I specify to filter only a single column when using the filter prompt

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->PutColumnAutoResize(VARIANT_TRUE);
spGantt1->PutContinueColumnScroll(VARIANT_FALSE);
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
spGantt1->PutMarkSearchColumn(VARIANT_FALSE);
spGantt1->PutSearchColumnIndex(1);
spGantt1->PutFilterBarPromptVisible(VARIANT_TRUE);
spGantt1->PutFilterBarPromptColumns("2,3");
spGantt1->PutFilterBarPromptPattern(L"london");
EXGANTTLib::IColumnsPtr var_Columns = spGantt1->GetColumns();
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h0 = var_Items->AddItem("Nancy Davolio");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Andrew Fuller");
	var_Items->PutCellCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCellCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->AddItem("Janet Leverling");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Kirkland");
	h0 = var_Items->AddItem("Margaret Peacock");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Redmond");
	h0 = var_Items->AddItem("Steven Buchanan");
	var_Items->PutCellCaption(h0,long(1),"Sales Manager");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Michael Suyama");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Robert King");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Laura Callahan");
	var_Items->PutCellCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Anne Dodsworth");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
spGantt1->EndUpdate();

703
How do I change the prompt or the caption being displayed in the filter bar

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
spGantt1->PutColumnAutoResize(VARIANT_TRUE);
spGantt1->PutContinueColumnScroll(VARIANT_FALSE);
spGantt1->PutMarkSearchColumn(VARIANT_FALSE);
spGantt1->PutSearchColumnIndex(1);
spGantt1->PutFilterBarPromptVisible(VARIANT_TRUE);
spGantt1->PutFilterBarPrompt(L"changed");
EXGANTTLib::IColumnsPtr var_Columns = spGantt1->GetColumns();
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
spGantt1->EndUpdate();

702
How do I enable the filter prompt feature

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
spGantt1->GetChart()->PutPaneWidth(VARIANT_TRUE,0);
spGantt1->PutColumnAutoResize(VARIANT_TRUE);
spGantt1->PutContinueColumnScroll(VARIANT_FALSE);
spGantt1->PutMarkSearchColumn(VARIANT_FALSE);
spGantt1->PutSearchColumnIndex(1);
spGantt1->PutFilterBarPromptVisible(VARIANT_TRUE);
EXGANTTLib::IColumnsPtr var_Columns = spGantt1->GetColumns();
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Name")))->PutWidth(96);
	((EXGANTTLib::IColumnPtr)(var_Columns->Add(L"Title")))->PutWidth(96);
	var_Columns->Add(L"City");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	long h0 = var_Items->AddItem("Nancy Davolio");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Andrew Fuller");
	var_Items->PutCellCaption(h0,long(1),"Vice President, Sales");
	var_Items->PutCellCaption(h0,long(2),"Tacoma");
	var_Items->PutSelectItem(h0,VARIANT_TRUE);
	h0 = var_Items->AddItem("Janet Leverling");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Kirkland");
	h0 = var_Items->AddItem("Margaret Peacock");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"Redmond");
	h0 = var_Items->AddItem("Steven Buchanan");
	var_Items->PutCellCaption(h0,long(1),"Sales Manager");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Michael Suyama");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Robert King");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
	h0 = var_Items->AddItem("Laura Callahan");
	var_Items->PutCellCaption(h0,long(1),"Inside Sales Coordinator");
	var_Items->PutCellCaption(h0,long(2),"Seattle");
	h0 = var_Items->AddItem("Anne Dodsworth");
	var_Items->PutCellCaption(h0,long(1),"Sales Representative");
	var_Items->PutCellCaption(h0,long(2),"London");
spGantt1->EndUpdate();

701
Is it possible to colour a particular column, I mean the cell's foreground color

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library'

	#import <ExGantt.dll>
	using namespace EXGANTTLib;
*/
EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown();
spGantt1->BeginUpdate();
EXGANTTLib::IConditionalFormatPtr var_ConditionalFormat = spGantt1->GetConditionalFormats()->Add(L"1",vtMissing);
	var_ConditionalFormat->PutForeColor(RGB(255,0,0));
	var_ConditionalFormat->PutApplyTo(EXGANTTLib::FormatApplyToEnum(0x1));
spGantt1->PutMarkSearchColumn(VARIANT_FALSE);
EXGANTTLib::IColumnsPtr var_Columns = spGantt1->GetColumns();
	var_Columns->Add(L"Column 1");
	var_Columns->Add(L"Column 2");
EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems();
	var_Items->PutCellCaption(var_Items->AddItem(long(0)),long(1),long(1));
	var_Items->PutCellCaption(var_Items->AddItem(long(2)),long(1),long(3));
	var_Items->PutCellCaption(var_Items->AddItem(long(4)),long(1),long(5));
spGantt1->EndUpdate();